Skip to content

Use a lease for resuming concurrency limited workers

The following discussion from !169561 (merged) should be addressed:

  • @stanhu started a discussion: (+2 comments)

    Are we guaranteed that only one QueueManager is ever working at a given time? Is it possible that one QueueManager might step on the other while trying to resume processing?

Proposed tasks

  1. Set until_executed strategy for the resume worker.
  2. Use a per-worker exclusive lease when resuming processing to avoid race conditions with manual interventions from the console.

Thanks @dgruzd for the suggestion 👍

Edited by Sylvester Chin