-
-
Notifications
You must be signed in to change notification settings - Fork 959
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
The cleanup_metrics job remains hanging on a DELETE statement in the database #8825
Comments
The initial cleanup might take long, but it should eventually complete. What query is actually taking that log? |
I have noticed that too. It is not related to initial cleanup, but to queries deleting orphaned metrics - these queries do not use indexes, so for large metrics table they can be super slow, even if they do not delete anything as a result. For me each query like |
I tried to be very patient and the delete query runs for more than 49 hours. In the process, I had to kill the parallel execution of |
This issue has been automatically marked as stale because there wasn’t any recent activity. It will be closed soon if no further action occurs. Thank you for your contributions! |
The problem is still valid. Since updating to Weblate 4.16.1, the job is now running for 100 hours and since I have a lot of patience, I can keep it running… |
That's expected, nothing was changed in 4.16... |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This removes need for possibly expensive garbage collection. Fixes WeblateOrg#8825
This removes need for possibly expensive garbage collection. Fixes WeblateOrg#8825
This removes need for possibly expensive garbage collection. Fixes #8825
Thank you for your report; the issue you have reported has just been fixed.
|
We just needed to remove some components from a translation project in a Weblate 4.17 installation and the deletion did not work due to the same query. Only after adding a database index |
Describe the issue
I regularly observe that there is a DELETE command hanging in the database, which consumes 100% of one CPU core and it is not going to be completed. When I kill the relevant database process, the Weblate celery log reports that the
cleanup_metrics
job failed.I tried to wait patiently for a long time, but it didn't seem like it was going anywhere.
I already tried
Steps to reproduce the behavior
cleanup_metrics
to run.cleanup_metrics
job failed.Expected behavior
I expect that
cleanup_metrics
should be completed at some point to allow processing of other tasks that are waiting in the celery queue.Screenshots
No response
Exception traceback
No response
How do you run Weblate?
PyPI module
Weblate versions
Weblate deploy checks
Additional context
The problem started appearing after upgrade to Weblate 4.14.x.
The text was updated successfully, but these errors were encountered: