django-celery
django-celery copied to clipboard
AttributeError: 'DatabaseFeatures' object has no attribute 'autocommits_when_autocommit_is_off'
celery-beat_1 | File "/usr/local/lib/python3.8/site-packages/djcelery/schedulers.py", line 169, in setup_schedule celery-beat_1 | self.install_default_entries(self.schedule) celery-beat_1 | File "/usr/local/lib/python3.8/site-packages/djcelery/schedulers.py", line 263, in schedule celery-beat_1 | self.sync() celery-beat_1 | File "/usr/local/lib/python3.8/site-packages/djcelery/schedulers.py", line 217, in sync celery-beat_1 | with commit_on_success(): celery-beat_1 | File "/usr/local/lib/python3.8/contextlib.py", line 113, in enter celery-beat_1 | return next(self.gen) celery-beat_1 | File "/usr/local/lib/python3.8/site-packages/djcelery/db.py", line 52, in commit_on_success celery-beat_1 | if connection.features.autocommits_when_autocommit_is_off: celery-beat_1 | AttributeError: 'DatabaseFeatures' object has no attribute 'autocommits_when_autocommit_is_off'
I launch in docker, an error if I put the dependencies by default, if I put certain versions of the dependencies, then there is no error
the same error , is it has any solution?
i faced with the same issure, it may be the issure with Django version,
the same error , is it has any solution?
i faced with the same issure, it may be the issure with Django version, you can use the version (Django==2.1.8, celery 3.1.26.post2). it may be help you.
This issue arises again with django-3.0 and django-celery-3.1
Im experiencing the same issue with Django-3.0.7 and django-celery-3.3.1. Are there any plans on fixing this issue?
Because it seems like others are changing the Django version to 2 or are there any other ways of overcoming this issue?
this package do not support django 1.11+ so if you are using newer version of celery you should consider django-celery-result and django-celery-beat