no point to set duration while not started yet
This commit is contained in:
parent
e5d022c813
commit
f6051d71d6
1 changed files with 2 additions and 0 deletions
|
@ -258,6 +258,8 @@ module Ci
|
|||
end
|
||||
|
||||
def update_duration
|
||||
return unless started_at
|
||||
|
||||
calculated_status = %w[success failed running canceled]
|
||||
calculated_builds = builds.latest.where(status: calculated_status)
|
||||
calculator = Gitlab::Ci::PipelineDuration.from_builds(calculated_builds)
|
||||
|
|
Loading…
Reference in a new issue