-
-
Notifications
You must be signed in to change notification settings - Fork 992
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
GitHub webhook sometimes does not take proper action #2628
Comments
Maybe Celery isn't able to process the tasks in timely manner? Because uwsgi just receives the update (what seems to work fine, there is matched component) and Celery then performs the actual update. The log which you posted is before the event, so it's probably from previous update. What might help you is to switch to Celery setup introduced in 3.4 where there are multiple queues used. This heavily improves utilization of processes as they no longer fight for memory or fulltext locks. That's just configuration change which is easy to apply to 3.3: weblate/examples/celery-weblate.conf Line 13 in 3cb99be
weblate/weblate/settings_example.py Lines 841 to 846 in 3cb99be
|
I plan to upgrade to the new Weblate soon. It can be the explanation of the problem. yast-translation recently contains 7050 po files, and full processing of changed po files may take ~10 hours. A hour before the problematic commit, a big merge was pushed to GitHub master. It merged about 80 conflicting commits. (Conflicts are regular side effects of delays: Pull that contains pot/po update is delayed, somebody changes po file in Weblate => merge conflicts happens.) |
You can also expect processing to take about half time with 3.5.1 (at least that's what benchmark show me in most cases). |
I don't know if it has any connection with your issue, but I have a significantly larger repository (approx 33700 files |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Describe the bug
I get repeated conflicts in the yast repository in the openSUSE Weblate:
https://l10n.opensuse.org/projects/yast-base/master/
Attempting to track this issue, I see that some GitHub webhooks are silently ignored.
The problem is not easily reproducible. Some hooks are correctly processed but some are ignored.
Note that yast-base project is heavily linked. It is used as a weblate internal link by more than 100 components.
To Reproduce
Steps to reproduce the behavior:
GitHub shows:
2019-03-13 21:59:56
Response 200
Completed in 2.03 seconds.
But 15 minutes later, yast-base information still shows outdated GitHub commit.
Trying GitHub redelived the hook, nothing changes, pull is not called.
Manual pressing of Pull button in the Repository Maintenance works.
Expected behavior
Ignore no webhooks.
Screenshots
If applicable, add screenshots to help explain your problem.
Server configuration and status
Note: Celery is properly installed.
Last items celery logs:
The text was updated successfully, but these errors were encountered: