Skip to content

Introduce StuckBuilds::DropScheduledService

drew stachon requested to merge drop-scheduled-builds into master

What does this MR do and why?

This MR uses the exact same change structure as !70233 (merged) to create a separate Worker and Service classes to drop scheduled timed-out builds.

Similar to !70233 (merged):

As part of our effort to make these build-dropping jobs more resilient, we'd like to make different services for each type of build drop so they can get scheduled independently and not interfere this each other in the event of a timeout. This MR creates the new service and uses the existing worker to queue up a new worker given an meaningful offset to reduce momentary load on the database. We'll do this with new services for other builds states as well, and then move them out into separately scheduled workers as strictly infra changes with observability follow-ups.

This is the second new worker to be introduced as part of #334399 (closed)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by drew stachon

Merge request reports