diff options
author | Unknwon <u@gogs.io> | 2016-08-30 16:18:33 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-30 16:18:33 -0700 |
commit | 8516dfcb6cb008f286ec84bed4243928acb94844 (patch) | |
tree | 9b3882438a04a3e659e49e35364a5643a71c9258 /conf | |
parent | c1ecb6c60a1acacf530e226b8043ca93d2fe4a07 (diff) | |
download | gitea-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')
-rw-r--r-- | conf/app.ini | 10 | ||||
-rw-r--r-- | conf/locale/locale_en-US.ini | 4 |
2 files changed, 10 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 diff --git a/conf/locale/locale_en-US.ini b/conf/locale/locale_en-US.ini index d2ffde68c5..4eb145953b 100644 --- a/conf/locale/locale_en-US.ini +++ b/conf/locale/locale_en-US.ini @@ -370,6 +370,7 @@ mirror_prune_desc = Remove any remote-tracking references that no longer exist o mirror_interval = Mirror Interval (hour) mirror_address = Mirror Address mirror_address_desc = Please include necessary user credentials in the address. +mirror_last_synced = Last Synced watchers = Watchers stargazers = Stargazers forks = Forks @@ -631,6 +632,9 @@ settings.collaboration.undefined = Undefined settings.hooks = Webhooks settings.githooks = Git Hooks settings.basic_settings = Basic Settings +settings.mirror_settings = Mirror Settings +settings.sync_mirror = Sync Now +settings.mirror_sync_in_progress = Mirror syncing is in progress, please refresh page in about a minute. settings.site = Official Site settings.update_settings = Update Settings settings.change_reponame_prompt = This change will affect how links relate to the repository. |