gitlab-org--gitlab-foss/spec
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
..
bin
config
controllers Preload ancestors after pagination when filtering 2018-07-06 14:09:36 +02:00
db/production
dependencies
factories Merge branch 'master' into build-chunks-on-object-storage 2018-07-06 14:38:24 +09:00
features (Part 2) Resolve "Recognise when a user is trying to validate a private SSH key" 2018-07-06 14:36:02 +00:00
finders Merge branch 'ee-5481-epic-todos' into 'master' 2018-07-04 12:57:37 +00:00
fixtures Add pipeline stages position clean-up migration 2018-06-29 13:57:52 +00:00
graphql Add pipeline lists to GraphQL 2018-07-04 10:53:39 +02:00
helpers Merge branch 'bvl-wrap-cross-project-group-permissions' into 'master' 2018-07-06 09:58:49 +00:00
initializers Migrate storage nesting check to Gitaly 2018-06-27 16:20:03 +00:00
javascripts Merge branch 'fl-mr-refactor-performance-improvements' into 'master' 2018-07-06 14:58:51 +00:00
lib Merge branch 'build-chunks-on-object-storage' into 'master' 2018-07-06 11:38:07 +00:00
mailers
migrations Temporarily remove MR diffs removal migration 2018-07-03 12:02:04 +01:00
models Delete deprecated object_storage_upload queue 2018-07-06 15:08:27 +00:00
policies Create cross project group features 2018-07-06 09:42:21 +02:00
presenters
requests Merge branch 'ide-merge-request-info' into 'master' 2018-07-06 11:02:20 +00:00
routing
rubocop/cop
serializers Render LegacyDiffNote when diff_file blob is nil 2018-07-04 12:34:41 -03:00
services Merge branch 'gitaly-conflicts-find-commit' into 'master' 2018-07-06 11:07:23 +00:00
sidekiq/cron
support Merge branch 'build-chunks-on-object-storage' into 'master' 2018-07-06 11:38:07 +00:00
tasks Speed up spec/tasks/gitlab/git_rake_spec.rb 2018-07-03 17:20:51 -05:00
unicorn
uploaders Fix minor spec review comments in uploader specs 2018-07-03 09:57:15 -07:00
validators
views
workers Add ExclusiveLease guards for RepositoryCheck::{DispatchWorker,BatchWorker} 2018-07-06 10:11:59 -07:00
factories_spec.rb
fast_spec_helper.rb
rails_helper.rb
rake_helper.rb
simplecov_env.rb
spec_helper.rb Fix User role displayed on projects dashboard 2018-07-06 07:51:31 +00:00