[Django]-Celery not picking CELERY_ALWAYS_EAGER settings

57👍

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_.

👤GDorn

-1👍

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

Leave a comment