Configuration
In Project Settings > Automation, set Task Timeout in minutes:How It Works
Task starts
A timer begins when the agent process spawns.
Monitoring
The queue poll thread checks active processes every 15 seconds against the timeout.
Timeout triggered
When a task exceeds the limit:
- Process is terminated (
SIGTERMon macOS/Linux,taskkillon Windows) - Task follows the retry policy — retry with backoff, or move to Failed
- Webhook notification fires (
task_timeoutevent) - Timeout logged in task history
Use Cases
Rate Limit Loops
Kill tasks stuck in rate limit wait cycles that would otherwise run forever.
Infinite Loops
Terminate tasks where Claude enters a reasoning or editing loop.
Resource Management
Ensure no single task monopolizes an agent slot, keeping the queue healthy.