Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lincvv opened this issue Mar 20, 2020 · 6 comments

Comments

@lincvv
Copy link

lincvv commented Mar 20, 2020

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
Copy link
Author

lincvv commented Mar 28, 2020

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

@0FuzzingQ
Copy link

the same error , is it has any solution?

@zaneran9
Copy link

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.

@abu-yusuf-dev
Copy link

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

@emad-ir
Copy link

emad-ir commented Oct 14, 2020

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?

@auvipy
Copy link
Member

auvipy commented Feb 12, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants