-
-
Notifications
You must be signed in to change notification settings - Fork 971
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
Celery does not parse correctly weblate configuration #4445
Comments
I also am not the only one experiencing this issue as this seems related to #4261 , altho with a simpler setup |
Downgrading to celery==4.4.0 fixed this issue, celery have deprecated their BROKER_URL uppercase for their lowercase settings and are under testing in the 5.0 rc release, we should probably update the requirements.txt to ask for at least 4.4.7 and update the settings to work with the newer versions |
The current dependency is:
So Celery 5.0 is clearly not supported. Why did you install 5.0rc? |
@nijel I did not, if you read the check_version you'd see I have installed 4.4.7, which already deprecates it! I followed the virtualenv setup on your documentation, and it installs it by default |
Weblate works just fine with 4.4.7, that's what we run on all our cloud hosting instances (for example see https://hosted.weblate.org/about/).
Can you please try which is the first version that breaks things?
The Celery settings in Django are still uppercase, see https://docs.celeryproject.org/en/master/django/first-steps-with-django.html#using-celery-with-django You're second one to run into this, so apparently something is documented wrongly or some code is wrong and I'd like to understand what is that. |
4.4.6 works, it got deprecated as of 4.4.7 it seems |
What got deprecated? I've already talked about settings which is not deprecated in way we use them. I can see no depreciation added between these two releases: celery/celery@v4.4.6...v4.4.7 |
@nijel not sure, I can repro it this way: https://asciinema.org/a/uGpLeAUMbMgm4gT0TSdMCRZNe |
The root cause seems to be celery/celery#6285 - the It works on our production sites because we don't use |
It is better to scale based on number of CPUs. Spotted while looking at #4445
Thank you for your report, the issue you have reported has just been fixed.
|
Describe the bug
When trying to setup weblate I have ran into an issue where celery is defaulting to its amqp settings instead of the redis one I configured in
settings.py
. The correct settings shows up in list_versions too, leading to an unusable weblate install. Reproducible with the default settings included in the documentation; celery started from./weblate/examples/celery start
.To Reproduce
Install weblate through virtualenv with postgresql, configure it as you would. The issue is reproducible with any webserver, be it runserver or gunicorn.
Expected behavior
It would be neat if celery actually processed my tasks
Server configuration and status
Weblate deploy checks
** Relevant system logs **
The text was updated successfully, but these errors were encountered: