-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Cron job to cleanup hook_task table #13080
Conversation
…hooktask # Conflicts: # custom/conf/app.example.ini
unit test failed |
Codecov Report
@@ Coverage Diff @@
## master #13080 +/- ##
==========================================
+ Coverage 42.09% 42.11% +0.01%
==========================================
Files 758 758
Lines 81014 81080 +66
==========================================
+ Hits 34104 34147 +43
- Misses 41342 41357 +15
- Partials 5568 5576 +8
Continue to review full report at Codecov.
|
@lafriks I believe I have them passing now |
Please resolve conflicts |
…hooktask # Conflicts: # custom/conf/app.example.ini # docs/content/doc/advanced/config-cheat-sheet.en-us.md
@lafriks sure, I resolved them |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small nit as I don't see any other cron task using CleanupHookTaskConfig it should probably just be moved into the function that uses it.
Otherwise LGTM
Please fix the lint. |
it is passing the linter now, thanks |
* master: [skip ci] Updated translations via Crowdin Fix bug because of duplicated join (go-gitea#14454) Cron job to cleanup hook_task table (go-gitea#13080) Fix panic 500 page rendering (go-gitea#14474) [skip ci] Updated translations via Crowdin Move macaron to chi (go-gitea#14293) [skip ci] Updated translations via Crowdin Fix incorrect key name so registerManualConfirm setting works as expected. (go-gitea#14455)
* master: [skip ci] Updated translations via Crowdin Fix bug because of duplicated join (go-gitea#14454) Cron job to cleanup hook_task table (go-gitea#13080) Fix panic 500 page rendering (go-gitea#14474) [skip ci] Updated translations via Crowdin Move macaron to chi (go-gitea#14293) [skip ci] Updated translations via Crowdin Fix incorrect key name so registerManualConfirm setting works as expected. (go-gitea#14455)
* master: [skip ci] Updated translations via Crowdin Fix bug because of duplicated join (go-gitea#14454) Cron job to cleanup hook_task table (go-gitea#13080) Fix panic 500 page rendering (go-gitea#14474) [skip ci] Updated translations via Crowdin Move macaron to chi (go-gitea#14293)
Ref issue: #10741
Added a cron job to delete webhook deliveries in the hook_task table. It can be turned on/off and the schedule controlled globally via app.ini. The data can be deleted by either the age of the delivery which is the default or by deleting the all but the most recent deliveries per webhook.
Note: I had previously submitted pr #11416 but I closed it when I realized that I had deleted per repository instead of per webhook. Also, I decided allowing the settings to be overridden via the ui was overkill. Also this version allows the deletion by age which is probably what most people would want.