Commit 74b3b549 authored by Rémy Coutable's avatar Rémy Coutable Committed by Clement Ho

Merge branch 'reduce-sidekiq-wait-timings' into 'master'

Reduce wait timings for Sidekiq jobs

See merge request !12270
parent 80b6a6e1
......@@ -34,7 +34,7 @@ module Users
# Keep trying until we obtain the lease. If we don't do so we may end up
# not updating the list of authorized projects properly. To prevent
# hammering Redis too much we'll wait for a bit between retries.
title: Reduce time spent waiting for certain Sidekiq jobs to complete
......@@ -14,7 +14,7 @@ module Gitlab
# timeout - The maximum amount of seconds to block the caller for. This
# ensures we don't indefinitely block a caller in case a job takes
# long to process, or is never processed.
def wait(timeout = 60)
def wait(timeout = 10)
start = Time.current
while (Time.current - start) <= timeout
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