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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
celery 5.0.0 with Django==3.0.10 emits CDeprecationWarning. Following the advise breaks the app #6366
Comments
also getting this (with django 2.2.15)
for all settings. That particular setting is defined like
Running |
task_serializer is suggested from celery 4.0 which you are not using. not the caps CELERY_TASK_SERIALIZER |
We're using the django-style configuration suggested in the docs, which has uppercase names prefixed with
Perhaps I should have led with that, I guess I assumed it. Code looks like: app.config_from_object('django.conf:settings', namespace='CELERY') |
|
This is indeed a problem. Lines 233 to 287 in f05e82a
We can adjust it to ensure it doesn't warn incorrectly, though I'm not sure how currently. |
@craigds TBH, I'm not familiar with what the command does in detail. |
@thedrow I was thinking about that and I found a couple of possible fixes. The first is really simple and it just doesn't invoke The next, and that's the one I'm currently working on, is a fix where instead of using |
At this point I prefer quick solutions as we are working on our configuration subsystem as well. The first solution you suggested certainly works. |
is there an eventual "fix" for this? will capitalized settings be supported indefinitely? I'm still seeing this warning in celery==5.3.5 and django==3.2.23 and applying the suggestion breaks django due to it requiring upper-cased settings |
Congrats on the v5 release 馃憦 and thank you for maintaining such a wonderful piece of software. Much appreciated.
I updated from
celery==4.4.7
tocelery==5.0.0
today and I'm using celery with Django 3.0.10. Celery produces this message - and others - after starting:I ran the
celery upgrade
command on the Django project settings and it worked beautifully. Unfortunately the application appears to block after the upgrade command and I think that blocking is caused by celery falling back to amqp while the project I'm working on uses redis as the broker. The Django application itself blocks due to it trying to starting a task which fails for the same reason.Reverted the settings - thanks for keeping a
.orig
and it's up and running again.Now I have been looking through the code to see if I could come up with a PR to suppress this message, but that appears to be kind of hard due to the way the configuration is processed. I'll see if I can come up with something.
The text was updated successfully, but these errors were encountered: