Skip to content

Use updated_at if pipeline has completed and finished_at is nil

Reuben Pereira requested to merge rp/use-updated-at-if-pipeline-completed into master

What does this MR do and why?

Describe in detail what your merge request does and why.

It seems that some pipelines have finished_at nil, even after the pipeline has completed. I noticed this happens with the CNG packager pipeline, which ends with a manual job, so the pipeline remains in manual state even after all jobs have completed.

This MR updates traces to use updated_at if the pipeline has completed, and finished_at is nil.

gitlab-com/gl-infra/delivery#2891 (closed) and gitlab-com/gl-infra/delivery#2905 (closed)

Author Check-list

  • Has documentation been updated?
Edited by Reuben Pereira

Merge request reports