gitlab-org--gitlab-foss/app/workers/repository_check
Stan Hu b33661d6ec Add ExclusiveLease guards for RepositoryCheck::{DispatchWorker,BatchWorker}
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
2018-07-06 10:11:59 -07:00
..
batch_worker.rb Add ExclusiveLease guards for RepositoryCheck::{DispatchWorker,BatchWorker} 2018-07-06 10:11:59 -07:00
clear_worker.rb Enable frozen string for app/workers/**/*.rb 2018-06-27 01:12:01 -07:00
dispatch_worker.rb Add ExclusiveLease guards for RepositoryCheck::{DispatchWorker,BatchWorker} 2018-07-06 10:11:59 -07:00
single_repository_worker.rb Enable frozen string for app/workers/**/*.rb 2018-06-27 01:12:01 -07:00