Skip to content

Instantly share code, notes, and snippets.

View mihaihuluta's full-sized avatar

Mihai H mihaihuluta

View GitHub Profile
@amatellanes
amatellanes / celery.sh
Last active October 22, 2024 12:13
Celery handy commands
/* Useful celery config.
app = Celery('tasks',
broker='redis://localhost:6379',
backend='redis://localhost:6379')
app.conf.update(
CELERY_TASK_RESULT_EXPIRES=3600,
CELERY_QUEUES=(
Queue('default', routing_key='tasks.#'),