Background Tasks Deployment
Deploy background task execution for running agents and recipes asynchronously in production environments.Overview
Background tasks allow you to:- Run recipes and agents without blocking
- Track progress and status
- Cancel running tasks
- Manage concurrent execution
Quick Start
Python Deployment
CLI Deployment
Configuration
Safe Defaults
| Setting | Default | Description |
|---|---|---|
timeout_sec | 300 | Maximum execution time (5 minutes) |
max_concurrent | 5 | Maximum concurrent tasks |
cleanup_delay_sec | 3600 | Time before completed tasks are cleaned up |
TEMPLATE.yaml Runtime Block
Configure background task defaults in your recipe’sTEMPLATE.yaml:

