gitlab-org--gitlab-foss/app/workers
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
..
ci Merge branch 'build-chunks-on-object-storage' into 'master' 2018-07-06 11:38:07 +00:00
concerns Refactor fetching healthy shards with Gitlab::HealthChecks::GitalyCheck 2018-06-27 21:43:23 +02:00
gitlab/github_import Support LFS objects when creating a project by import 2018-06-06 16:42:18 +00:00
mail_scheduler Enable frozen string for app/workers/**/*.rb 2018-06-27 01:12:01 -07:00
object_storage Enable frozen string for app/workers/**/*.rb 2018-06-27 01:12:01 -07:00
repository_check Add ExclusiveLease guards for RepositoryCheck::{DispatchWorker,BatchWorker} 2018-07-06 10:11:59 -07:00
admin_email_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
all_queues.yml Delete deprecated object_storage_upload queue 2018-07-06 15:08:27 +00:00
archive_trace_worker.rb Fix spec 2018-07-05 10:52:50 +09:00
authorized_projects_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
background_migration_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
build_coverage_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
build_finished_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
build_hooks_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
build_queue_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
build_success_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
build_trace_sections_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
cluster_install_app_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
cluster_provision_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
cluster_wait_for_app_installation_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
cluster_wait_for_ingress_ip_address_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
create_gpg_signature_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
create_note_diff_file_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
create_pipeline_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
delete_diff_files_worker.rb Delete non-latest merge request diff files upon diffs reload 2018-06-24 18:01:37 -03:00
delete_merged_branches_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
delete_user_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
email_receiver_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
emails_on_push_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
expire_build_artifacts_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
expire_build_instance_artifacts_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
expire_job_cache_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
expire_pipeline_cache_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
git_garbage_collect_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
gitlab_shell_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
gitlab_usage_ping_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
group_destroy_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
import_export_project_cleanup_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
invalid_gpg_signature_update_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
irker_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
issue_due_scheduler_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
merge_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
namespaceless_project_destroy_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
new_issue_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
new_merge_request_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
new_note_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
pages_domain_verification_cron_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
pages_domain_verification_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
pages_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
pipeline_hooks_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
pipeline_metrics_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
pipeline_notification_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
pipeline_process_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
pipeline_schedule_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
pipeline_success_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
pipeline_update_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
plugin_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
post_receive.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
process_commit_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
project_cache_worker.rb Revert "Merge branch '44726-cancel_lease_upon_completion_in_project_cache_worker' into 'master'" 2018-07-04 11:04:58 +00:00
project_destroy_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
project_export_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
project_migrate_hashed_storage_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
project_service_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
propagate_service_template_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
prune_old_events_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
prune_web_hook_logs_worker.rb Prune web hook logs older than 90 days 2018-07-02 12:48:57 +02:00
reactive_caching_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
rebase_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
remove_expired_group_links_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
remove_expired_members_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
remove_old_web_hook_logs_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
remove_unreferenced_lfs_objects_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
repository_archive_cache_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
repository_fork_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
repository_import_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
repository_remove_remote_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
repository_update_remote_mirror_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
requests_profiles_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
run_pipeline_schedule_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
schedule_update_user_activity_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
stage_update_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
storage_migrator_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
stuck_ci_jobs_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
stuck_import_jobs_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
stuck_merge_jobs_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
system_hook_push_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
trending_projects_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
update_head_pipeline_for_merge_request_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
update_merge_requests_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
update_user_activity_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
upload_checksum_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
wait_for_cluster_creation_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
web_hook_worker.rb Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00