Extract logic for delaying worker execution for all workers utilizing LB
In #330136 (closed) we introduced delayed scheduling of BuildHooksWorker, in order to give enough time for the replication process to complete. This way, the replica will have more chance to catch up, and the job will more likely use replica, and we will reduce some of the dependency we have on sidekiq-retries for these jobs.
Since we are aiming to utilize LB capabilities for more workers, we should extract this logic, and have delayed scheduling for all workers with :delayed
and :sticky
data consistency.
Edited by Nikola Milojevic