-
-
Notifications
You must be signed in to change notification settings - Fork 958
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
Large celery translate queue that is not clearing #8338
Comments
There might be something wrong with the PostgreSQL database that made the queries hang. The task queue cannot be cleared because the worker might have prefetched the queue. If you would stop the translate worker, the queue would be restored in redis and the management command would work. For the next release, the performance should get slightly better due to d5a83bc |
This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger. In case your question is already answered, making a donation is the right way to say thank you! |
Hi @nijel, thanks for the reply :) How would I stop the translate worker? |
|
Hi @nijel , I tried the command but sadly this also did not do the trick. However, when I restarted the celery task (with After further testing I found that repeatedly stoping and starting the task decreases the queue by 0-10 tasks each time. I will keep an eye on the queue over the next week and if I see it building up again I will set up a weekly script that stops and starts the task 10 times each day to purge anything stuck in the translate queue. Thanks for your help! |
The issue you have reported is now resolved. If you don’t feel it’s right, please follow its labels to get a clue for further steps.
|
That's weird, it should process tasks continuously, not this way. Anyway, I've added some supervisor hints to our docs in 9743509. |
Describe the issue
My Weblate instance is very slow and after investigating I found that the DB was under constant load. I found that there are over 1000 translate tasks in the celery queue that seem to be stuck. The number is not reducing (even after waiting for days).
There are no errors in the logs and I update to the newest version to see if this helps (it did not). I also tried to clear the queue using
docker exec weblate-docker weblate_ 1 celery -A weblate.utils purge -f
However, celery stated that there are no messages to be purged:
Looking at the active and scheduled celery queues I also can not see over 1000 tasks:
How can I get rid of the translate tasks?
I already tried
Steps to reproduce the behavior
Not clear what the root cause is, as such it is unclear how to reproduce this issue.
Expected behavior
Translate queue shows 0 once translations are done.
Screenshots
Exception traceback
How do you run Weblate?
Docker container
Weblate versions
No response
Weblate deploy checks
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: