Commit d50ae9fc authored by Gabriel Mazetto's avatar Gabriel Mazetto

When we can't renew exclusive lease we should exit the loop

parent bf98a0f1
...@@ -15,7 +15,7 @@ module Gitlab ...@@ -15,7 +15,7 @@ module Gitlab
yield batch yield batch
save_processed(batch.last.id) save_processed(batch.last.id)
renew_lease! break unless renew_lease!
end end
end end
end 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