diff options
Diffstat (limited to 'app/models/ci/stage.rb')
-rw-r--r-- | app/models/ci/stage.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ci/stage.rb b/app/models/ci/stage.rb index ae80692d598..03a97355574 100644 --- a/app/models/ci/stage.rb +++ b/app/models/ci/stage.rb @@ -84,7 +84,7 @@ module Ci end def set_status(new_status) - retry_optimistic_lock(self) do + retry_optimistic_lock(self, name: 'ci_stage_set_status') do case new_status when 'created' then nil when 'waiting_for_resource' then request_resource @@ -138,7 +138,7 @@ module Ci end def latest_stage_status - statuses.latest.composite_status || 'skipped' + statuses.latest.composite_status(project: project) || 'skipped' end end end |