[COMMITTED] app.ini: Disable cron.git_gc_repos

Mark Wielaard mark@klomp.org
Wed Oct 23 09:42:34 GMT 2024


Don't periodically git gc all repos. The gcc repository in
particularly takes too long and uses too much disk space during a
gc. The default timeout of 60 seconds is too low. A gc will either
time out or eat up so much disk space that it might not be able to
continue.
---
 config-files/srv/forgejo/app.ini | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/config-files/srv/forgejo/app.ini b/config-files/srv/forgejo/app.ini
index f3e0fb60d5a8..453bf8e192f1 100644
--- a/config-files/srv/forgejo/app.ini
+++ b/config-files/srv/forgejo/app.ini
@@ -90,7 +90,8 @@ ENABLE_OPENID_SIGNUP = false
 ENABLED = true
 
 [cron.git_gc_repos]
-ENABLED = true
+ENABLED = false
+TIMEOUT = 7200
 
 [session]
 PROVIDER = file
-- 
2.47.0



More information about the Forge mailing list