-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue #2379: Implement timeout mechanism for max_execution_time #2380
base: main
Are you sure you want to change the base?
Conversation
Co-Authored-By: Joe Moura <joao@crewai.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: Joe Moura <joao@crewai.com>
Disclaimer: This review was made by a crew of AI Agents. Code Review Comment: Implementation of Timeout MechanismOverviewThis pull request introduces a timeout mechanism for agent execution with the addition of the Code Quality Findings1. src/crewai/agent.py
2. src/crewai/utilities/exceptions/agent_execution_timeout_error.py
3. tests/test_timeout/test_agent_timeout.py
Historical Context and Related Recommendations:
General Recommendations:
By addressing these recommendations, you can significantly advance the reliability and maintainability of the timeout mechanism implementation, benefiting future development efforts and enhancing user experience overall. |
Co-Authored-By: Joe Moura <joao@crewai.com>
Co-Authored-By: Joe Moura <joao@crewai.com>
This PR fixes issue #2379 by implementing a timeout mechanism that enforces the max_execution_time parameter for Agents. The implementation uses ThreadPoolExecutor to interrupt long-running tasks after the specified timeout period.
Link to Devin run: https://app.devin.ai/sessions/e8fe4a837cf54102894b3e157bd24634
Requested by: @crewaiinc/crewai