Enable gitea delete_repo_archives cron job
This enables an undocumented (yay) gitea cron job which will serve to clean up all repo archives once a week on Sunday at 03:00. The purpose of this cronjob is that the default cronjob which clears out older repo archives hasn't kept up and we ran out of disk on gitea09. By running this cronjob weekly we'll hopefully keep disk usage in check. Note we run this at 03:00 because gitea runs a number of cron jobs daily at midnight. This offset of a few hours should help avoid conflicts between cron jobs. A held node confirms that running this cronjob at midnight results in failures due to conflicts with the cleanup of old archives cron job. Change-Id: Ib4085a4df220f9c312592e299e7274635434e761
This commit is contained in:
parent
de98e3c3c8
commit
331ca64055
@ -122,3 +122,15 @@ ENABLED = false
|
||||
[lfs]
|
||||
STORAGE_TYPE = local
|
||||
PATH = /data/git/lfs
|
||||
|
||||
; This is an undocumented gitea cron job that will delete all
|
||||
; repo archives once a week Sunday at midnight. Repo archives are
|
||||
; tarballs/zips/etc of repository state generate for things like
|
||||
; tags. This helps ensure we don't run out of disk.
|
||||
[cron.delete_repo_archives]
|
||||
ENABLED = true
|
||||
RUN_AT_START = false
|
||||
NOTICE_ON_SUCCESS = false
|
||||
; Note we run this several hours after 0000 (midnight) to avoid conflict
|
||||
; with default cron jobs run by gitea at that time.
|
||||
SCHEDULE = 0 0 3 * * 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user