From 0c40cff9a44bc79617f2868ee41c77c2cb973674 Mon Sep 17 00:00:00 2001 From: Jason Song Date: Fri, 2 Aug 2024 08:42:08 +0800 Subject: 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. image Docs: https://gitea.com/gitea/docs/pulls/40 --------- Co-authored-by: silverwind (cherry picked from commit 687c1182482ad9443a5911c068b317a91c91d586) Conflicts: custom/conf/app.example.ini routers/web/repo/actions/view.go trivial context conflict --- custom/conf/app.example.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'custom') diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini index 8307dd31a1..a22276a0d6 100644 --- a/custom/conf/app.example.ini +++ b/custom/conf/app.example.ini @@ -2710,7 +2710,9 @@ LEVEL = Info ;ENABLED = true ;; Default address to get action plugins, e.g. the default value means downloading from "https://code.forgejo.org/actions/checkout" for "uses: actions/checkout@v3" ;DEFAULT_ACTIONS_URL = https://code.forgejo.org -;; Default artifact retention time in days, default is 90 days +;; Logs retention time in days. Old logs will be deleted after this period. +;LOG_RETENTION_DAYS = 365 +;; Default artifact retention time in days. Artifacts could have their own retention periods by setting the `retention-days` option in `actions/upload-artifact` step. ;ARTIFACT_RETENTION_DAYS = 90 ;; Timeout to stop the task which have running status, but haven't been updated for a long time ;ZOMBIE_TASK_TIMEOUT = 10m -- cgit v1.2.3