Skip to content

Add until_executed to AutoRecoverWorker

Hunter Stewart requested to merge hustewart-deduplicate-auto-recover into master

What does this MR do and why?

Why

We want to make sure we're not enqueuing the same set of environments.

See AutoRecoverWorker de-duplication (#431203 - closed) for more context

What

Add until_executed to AutoRecoverWorker

This strategy takes a lock when a job is added to the queue, and removes that lock after the job finishes. It can be used to prevent jobs from running simultaneously multiple times.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

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

Merge request reports