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_.
-1👍
Please restart celery worker after setting CELERY_ALWAYS_EAGER = True in settings.py and see if it helps.
- [Django]-Is virtualenv recommended for django production server?
- [Django]-URL-parameters and logic in Django class-based views (TemplateView)
- [Django]-Is it possible to pass query parameters via Django's {% url %} template tag?
Source:stackexchange.com