Enforce Job timeouts for Canceling Builds

What does this MR do and why?

This MR introduces timeout enforcement for canceling Ci::Builds, similar to how we currently enforce timeouts for RunningBuilds via Ci::TimedOutBuilds::DropRunningWorker.

Note:

  • Considered creating a new table called Ci::CancelingBuild to enhance query performance and decrease the load of Ci::Build, but new 1:1 relations to Ci::Build are forbidden at the moment so we'll have to work with what is available.

References

Related to #582928

Edited by Panos Kanellidis

Merge request reports

Loading