Fix Sidekiq sleep time for jobs that use replicas
What does this MR do and why?
We should sleep based on the time remaining to reach the minimum delay and not based on the time elapsed from creation.
Follow-up to !74532 (merged)
Related to gitlab-com/gl-infra/scalability#1380 (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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Heinrich Lee Yu