Commit Graph

6 Commits

Author SHA1 Message Date
GitLab Bot 6b833f1e03 Add latest changes from gitlab-org/gitlab@master 2020-02-04 15:08:40 +00:00
GitLab Bot 25989ab7ef Add latest changes from gitlab-org/gitlab@master 2019-10-18 11:11:44 +00:00
gfyoung d4da4829d4 Enable frozen string in newly added files
Enables frozen string for new files in
directories that had been previously
covered in previous MR's.

Partially addresses #47424.
2018-07-21 19:00:50 -07:00
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
Toon Claes 041a8ae268 Rename method to #each_eligible_shard 2018-06-27 21:43:23 +02:00
Toon Claes 95ac8b0e1d Add RepositoryCheck::DispatchWorker to start worker per shard
The RepositoryCheck::DispatchWorker will start a
RepositoryCheck::BatchWorker for each healthy shard.

Closes gitlab-org/gitlab-ce#48042
2018-06-27 21:43:23 +02:00