Route Celery tasks and configure acks_late for reliable processing

domain: docs.celeryq.dev · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Define task queues and routing in your Celery config: set task_queues with Queue objects and task_routes to map task names to specific queues
  2. Start workers bound to specific queues with celery worker -Q queue_name to control which workers process which tasks
  3. Set acks_late=True on tasks that must not be lost on worker crash; the message is acknowledged only after the task function returns
  4. Pair acks_late with task_reject_on_worker_lost=True so that if a worker dies mid-task the message is re-queued rather than lost
  5. Use task_always_eager=False in production; set it True only in tests to run tasks synchronously without a broker

Known gotchas

Related routes

Configure Celery tasks for reliability
celery · 4 steps · unrated
Handle late-arriving data with allowed lateness and grace periods in stream processing
nightlies.apache.org/flink · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans