django-celery icon indicating copy to clipboard operation
django-celery copied to clipboard

AttributeError: 'DatabaseFeatures' object has no attribute 'autocommits_when_autocommit_is_off'

Open lincvv opened this issue 4 years ago • 6 comments

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'

lincvv avatar Mar 20 '20 10:03 lincvv

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

lincvv avatar Mar 28 '20 08:03 lincvv

the same error , is it has any solution?

0FuzzingQ avatar Apr 15 '20 04:04 0FuzzingQ

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.

zaneran9 avatar Apr 24 '20 03:04 zaneran9

This issue arises again with django-3.0 and django-celery-3.1

abu-yusuf-dev avatar Oct 05 '20 10:10 abu-yusuf-dev

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?

emad-ir avatar Oct 14 '20 11:10 emad-ir

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

auvipy avatar Feb 12 '21 05:02 auvipy