Quick Start
Run a persistent TaskDaemon instance and verify a Python handler from submission to completion.Prerequisites
Docker must be installed and running. Checkdocker info; if it fails, start the Docker engine yourself before continuing. The polling example also uses curl and jq.
1. Create a Handler
handler.py:
Dockerfile.handler:
2. Build the Handler Image
3. Create Handler Config
Createhandlers.toml:
4. Start TaskDaemon
docker logs taskdaemon. The CLI defaults to 2 workers. /health confirms queue access; the first submitted task also checks that the handler can initialize and respond.
5. Submit and Wait for a Result
This Bash script waits up to 60 seconds for daemon health and 120 seconds for task completion:result: {"message":"Hello, TaskDaemon!"}. Check status before interpreting a result; submission only acknowledges that the task was persisted.
6. Cleanup
task-data volume remains so a replacement daemon can read the task history. Delete it only when you intentionally want to discard that data:
Next Steps
- Use the Python SDK for handler code
- See the Sample Project
- Configure monitoring
- Review batch size, retries, and leases