aboutsummaryrefslogtreecommitdiffstats
path: root/services/cron
diff options
context:
space:
mode:
authorJason Song <i@wolfogre.com>2024-08-02 08:42:08 +0800
committerGitHub <noreply@github.com>2024-08-02 00:42:08 +0000
commit687c1182482ad9443a5911c068b317a91c91d586 (patch)
treecd47e85e58f7cd985aa1fe3ca0d64cd8b22724e2 /services/cron
parente3678356e1c0e50de96a3a142d703c8797c1476f (diff)
downloadgitea-687c1182482ad9443a5911c068b317a91c91d586.tar.gz
gitea-687c1182482ad9443a5911c068b317a91c91d586.zip
Clear up old Actions logs (#31735)
Part of #24256. Clear up old action logs to free up storage space. Users will see a message indicating that the log has been cleared if they view old tasks. <img width="1361" alt="image" src="https://github.com/user-attachments/assets/9f0f3a3a-bc5a-402f-90ca-49282d196c22"> Docs: https://gitea.com/gitea/docs/pulls/40 --------- Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'services/cron')
-rw-r--r--services/cron/tasks_actions.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/cron/tasks_actions.go b/services/cron/tasks_actions.go
index 9b5e0b9f41..59cfe36d14 100644
--- a/services/cron/tasks_actions.go
+++ b/services/cron/tasks_actions.go
@@ -68,7 +68,7 @@ func registerScheduleTasks() {
func registerActionsCleanup() {
RegisterTaskFatal("cleanup_actions", &BaseConfig{
Enabled: true,
- RunAtStart: true,
+ RunAtStart: false,
Schedule: "@midnight",
}, func(ctx context.Context, _ *user_model.User, _ Config) error {
return actions_service.Cleanup(ctx)