diff options
| author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-04-12 15:56:44 +0200 |
|---|---|---|
| committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-04-12 15:56:44 +0200 |
| commit | 318314154e09d051cccd8b8391f2065133906bd7 (patch) | |
| tree | dbb681266cf36ece910d2cf3380e41b997905a8e /app/workers | |
| parent | 5cf56e56470e695b10db02dff70d0f0b50060518 (diff) | |
| download | gitlab-ce-318314154e09d051cccd8b8391f2065133906bd7.tar.gz | |
Increase fsck lock timeout to 24 hours
Diffstat (limited to 'app/workers')
| -rw-r--r-- | app/workers/repository_check_worker.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/workers/repository_check_worker.rb b/app/workers/repository_check_worker.rb index 2d75c8bafde..afdc6a4c63a 100644 --- a/app/workers/repository_check_worker.rb +++ b/app/workers/repository_check_worker.rb @@ -37,9 +37,11 @@ class RepositoryCheckWorker end def try_obtain_lease(id) + # Use a 24-hour timeout because on servers/projects where 'git fsck' is + # super slow we definitely do not want to run it twice in parallel. lease = Gitlab::ExclusiveLease.new( "project_repository_check:#{id}", - timeout: RUN_TIME + timeout: 24.hours ) lease.try_obtain end |
