aboutsummaryrefslogtreecommitdiffstats
path: root/conf/app.ini
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-30 16:18:33 -0700
committerUnknwon <u@gogs.io>2016-08-30 16:18:33 -0700
commit8516dfcb6cb008f286ec84bed4243928acb94844 (patch)
tree9b3882438a04a3e659e49e35364a5643a71c9258 /conf/app.ini
parentc1ecb6c60a1acacf530e226b8043ca93d2fe4a07 (diff)
downloadgitea-8516dfcb6cb008f286ec84bed4243928acb94844.tar.gz
gitea-8516dfcb6cb008f286ec84bed4243928acb94844.zip
#2018 able to sync now for mirrors
- Refactor code to use sync.UniqueQueue - Closes #3509
Diffstat (limited to 'conf/app.ini')
-rw-r--r--conf/app.ini10
1 files changed, 6 insertions, 4 deletions
diff --git a/conf/app.ini b/conf/app.ini
index 3287775491..ce5c270553 100644
--- a/conf/app.ini
+++ b/conf/app.ini
@@ -17,8 +17,10 @@ ANSI_CHARSET =
FORCE_PRIVATE = false
; Global maximum creation limit of repository per user, -1 means no limit
MAX_CREATION_LIMIT = -1
-; Patch test queue length, make it as large as possible
-PULL_REQUEST_QUEUE_LENGTH = 10000
+; Mirror sync queue length, increase if mirror syncing starts hanging
+MIRROR_QUEUE_LENGTH = 1000
+; Patch test queue length, increase if pull request patch testing starts hanging
+PULL_REQUEST_QUEUE_LENGTH = 1000
; Preferred Licenses to place at the top of the List
; Name must match file name in conf/license or custom/conf/license
PREFERRED_LICENSES = Apache License 2.0,MIT License
@@ -184,7 +186,7 @@ ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false
ENABLE_CAPTCHA = true
[webhook]
-; Hook task queue length
+; Hook task queue length, increase if webhook shooting starts hanging
QUEUE_LENGTH = 1000
; Deliver timeout in seconds
DELIVER_TIMEOUT = 5
@@ -389,7 +391,7 @@ GC = 60
[mirror]
; Default interval in hours between each check
-DEFAULT_INTERVAL = 24
+DEFAULT_INTERVAL = 8
[api]
; Max number of items will response in a page