Commit 31831415 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Increase fsck lock timeout to 24 hours

parent 5cf56e56
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment