Configure Timeout
Set the timeout in youragent.yaml:
Example: Long Analysis Task
Run Long Tasks
Check Progress
While a task is running:Handle Failures
Long tasks are more likely to fail. Use workspace to save progress:Timeout vs Memory
| Issue | Symptom | Fix |
|---|---|---|
| Timeout | Request killed after N seconds | Increase timeout |
| Out of memory | Worker crashes | Increase memory |
| Both | Large data processing | Split into smaller chunks |
Best Practices
- Save progress incrementally - Don’t lose work on failure
- Log progress - Use
print()for visibility - Set realistic timeout - Add buffer for API latency
- Use workspace for checkpoints - Resume after failures
Next: Scaling
Tune autoscaling for your workload →

