By the end of this guide, your Celery jobs will appear in the Sluice dashboard — with real-time state tracking, search, and management actions.Documentation Index
Fetch the complete documentation index at: https://docs.sluice.sh/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Python 3.11 or later
- Celery 5.3 or later with a Redis broker
- A Sluice account (free, no credit card required)
1. Create a connection
Sign in to the Sluice dashboard and go to Connections. Click Add Connection, pick “Python SDK”, and name your connection (e.g., “Production Celery”). You’ll receive:- An API key — starts with
sk_ - A Connection ID — a UUID that identifies this connection
2. Install the SDK
3. Initialize Sluice
Add an import and aninit() call to your Celery configuration — wherever you define your Celery app:
4. Restart your worker
5. See your data
Open the Sluice dashboard. Send a task from your application and watch it appear in real time. That’s it — you’re monitoring Celery.What the SDK does automatically
Whensluice.init() runs, the SDK:
- Auto-configures Celery events — sets
worker_send_task_events=True,task_send_sent_event=True, andtask_track_started=True. These are allFalseby default in Celery, and without them, most monitoring data is invisible. - Installs a Celery Bootstep — hooks into the worker lifecycle to capture task events as they happen.
- Normalizes and forwards events — batches events and sends them to the Sluice API over HTTPS.
- Never crashes your worker — all runtime errors are caught and logged. The SDK operates under a strict “production cannot fail” philosophy.
The SDK auto-detects whether you’re running Django or standalone Celery and configures itself accordingly. No framework-specific setup is needed.
Next steps
- SDK Reference — all
sluice.init()parameters and environment variables - Safety Guarantees — how the SDK protects your production workers
- Troubleshooting — if jobs aren’t appearing in the dashboard