1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00
gitea/modules/cron
Brad Albright a598877fdf
Cron job to cleanup hook_task table (#13080)
Close **Prune hook_task Table (#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.
2021-01-26 22:02:42 +01:00
..
cron.go Refactor Cron and merge dashboard tasks (#10745) 2020-05-16 19:31:38 -04:00
setting.go Cron job to cleanup hook_task table (#13080) 2021-01-26 22:02:42 +01:00
tasks_basic.go Cron job to cleanup hook_task table (#13080) 2021-01-26 22:02:42 +01:00
tasks_extended.go Add ssh certificate support (#12281) 2020-10-10 20:38:09 -04:00
tasks.go Mirror System Notice reports are too frequent (#12438) 2020-08-05 21:40:36 +01:00