Developing with Django+Celery without running `celeryd`?

David Wolever picture David Wolever · Oct 6, 2010 · Viewed 9.5k times · Source

In development, it's a bit of a hassle to run the celeryd as well as the Django development server. Is it possible to, for example, ask celery to run tasks synchronously during development? Or something similar?

Answer

Mark Lavin picture Mark Lavin · Oct 6, 2010

Yes you can do this by setting CELERY_TASK_ALWAYS_EAGER = True in your settings.
(Constant was previously called CELERY_ALWAYS_EAGER) http://docs.celeryproject.org/en/latest/userguide/configuration.html#task-execution-settings