提交 f6051d71 编写于 作者: L Lin Jen-Shin

no point to set duration while not started yet

上级 e5d022c8
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册