mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-09-20 18:13:49 +00:00
- Add threading.Event-based cancellation mechanism to Crew class - Implement cancel(), is_cancelled(), and _reset_cancellation() methods - Add cancellation checks in _execute_tasks() main execution loop - Handle cancellation in async task processing (_process_async_tasks) - Create CrewKickoffCancelledEvent following existing event patterns - Add comprehensive tests for cancellation functionality - Support graceful shutdown allowing current task to complete - Ensure thread-safe cancellation across sequential and hierarchical processes Fixes #3445 Co-Authored-By: João <joao@crewai.com>