Skip to content Skip to sidebar Skip to footer

Celery Tasks Doesn't Works

Celery docs say that Celery 3.1 can work with django out of box. But tasks not working. I have tasks.py: from celery import task from datetime import timedelta @task.periodic_task

Solution 1:

you should use celery beat to run periodic task.

celery -A project worker --loglevel=INFO

starts the worker, which does the actually work.

celery -A proj beat

starts the beat service, which asks the work to do the job.

Post a Comment for "Celery Tasks Doesn't Works"