celery — Easy Examples
Distributed task queue for async job processing
Getting started with celery
Installation and basic usage of celery.
python
# Install: pip install celery[redis] from celery import Celery app = Celery("tasks", broker="redis://localhost:6379") @app.task def add(x, y): return x + y # Usage: # result = add.delay(4, 4) # print(result.get())
Expected Output
# Expected output shown below # (Run locally with: celery)
celery is a third-party package. Distributed task queue for async job processing. Install with: pip install celery[redis]
Common celery operations
Frequently used features of celery.
python
# Install: pip install celery[redis] import celery # Common celery patterns print(f"celery version: {celery.__version__}")
These are the most commonly used features of celery in everyday development.
Want to try these examples interactively?
Open Easy Playground