b33661d6ec
We saw in production that DispatchWorker was running about twice an hour, which would schedule twice as many jobs as it should. For some reason, BatchWorker was running 1000 times per hour, possibly due to Sidekiq RSS kills that caused these jobs to restart. Adding an ExclusiveLease prevents these jobs from running more than they should. Relates to https://gitlab.com/gitlab-com/infrastructure/issues/4526 |
||
---|---|---|
.. | ||
batch_worker_spec.rb | ||
clear_worker_spec.rb | ||
dispatch_worker_spec.rb | ||
single_repository_worker_spec.rb |