Skip to content

Reduce EnqueuerWorker lease timeout

Steve Abrams requested to merge 357850-reduce-enqueuer-lease-timeout into master

What does this MR do and why?

We are in the process of preparing to migrate all existing container repositories to the new container registry. This process is driven by a worker in rails, the EnqueuerWorker. The worker uses a lease to ensure that we don't accidentally try to migrate the same container repository twice.

The Enqueuer is using a lease timeout duration of 1.hour.

During testing, we hit a situation where the background job was "killed" and the lease was not released.

This led to a quite long wait time as we had to wait for the lease key to timeout.

In this MR, we lower the lease time to 30 minutes.

Screenshots or screen recordings

N/A

How to set up and validate locally

N/A

MR acceptance checklist

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

Related to #357850 (closed)

Edited by Steve Abrams

Merge request reports

Loading