Skip to content

Instantly share code, notes, and snippets.

View kandreyrosales's full-sized avatar

Kevin Rosales kandreyrosales

View GitHub Profile
@kandreyrosales
kandreyrosales / celery.sh
Created May 29, 2020 07:47 — forked from amatellanes/celery.sh
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.#'),