Skip to content Skip to sidebar Skip to footer

Celery Not Picking Celery_always_eager Settings

I am running Django 1.8 + Celery 4.0.2 Celery is configured well and can run my Django tasks locally on redis backend. But when I try to use CELERY_ALWAYS_EAGER = True settings, th

Solution 1:

CELERY_ALWAYS_EAGER has been renamed to CELERY_TASK_ALWAYS_EAGER in version 4.0+.

More accurately, all-caps settings have been deprecated in favor of directly configuring the celery app object, and several have been namespaced to either use task_ or worker_ as a prefix. Because there's still backwards-compatability with all-caps settings, this indirectly renamed the all-caps setting as well.

From the changelog:

The celery_ prefix has also been removed, and task related settings from this name-space is now prefixed by task_, worker related settings with worker_.

Solution 2:

Please restart celery worker after setting CELERY_ALWAYS_EAGER = True in settings.py and see if it helps.

Post a Comment for "Celery Not Picking Celery_always_eager Settings"