diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-02-23 13:44:49 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-02-23 13:44:49 +0300 |
commit | ed986806786d0c3fa5794409566e9e18a7916ed9 (patch) | |
tree | a1e86cb5708ed9e748c367537edbfa1ff8987683 /lib/gitlab | |
parent | 1965482f12688f4f26342b91eca888567d0dac04 (diff) |
Process skipped jobs in the pipeline when retrying it
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/optimistic_locking.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/optimistic_locking.rb b/lib/gitlab/optimistic_locking.rb index 879d46446b3..e0b2286f1dc 100644 --- a/lib/gitlab/optimistic_locking.rb +++ b/lib/gitlab/optimistic_locking.rb @@ -1,6 +1,6 @@ module Gitlab module OptimisticLocking - extend self + module_function def retry_lock(subject, retries = 100, &block) loop do @@ -15,5 +15,7 @@ module Gitlab end end end + + alias :retry_optimistic_lock :retry_lock end end |