Commit e49bea27 authored by Matthias Kaeppler's avatar Matthias Kaeppler

Fix existing WorkerDataConsistency cop offenses

This cop was introduced in:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/65341
parent fed6566c
...@@ -3024,397 +3024,3 @@ Database/MultipleDatabases: ...@@ -3024,397 +3024,3 @@ Database/MultipleDatabases:
- 'spec/tasks/gitlab/db_rake_spec.rb' - 'spec/tasks/gitlab/db_rake_spec.rb'
- 'spec/workers/analytics/usage_trends/counter_job_worker_spec.rb' - 'spec/workers/analytics/usage_trends/counter_job_worker_spec.rb'
- 'spec/workers/users/create_statistics_worker_spec.rb' - 'spec/workers/users/create_statistics_worker_spec.rb'
# See https://gitlab.com/gitlab-org/gitlab/-/issues/335170
Cop/WorkerDataConsistency:
Exclude:
- 'app/workers/admin_email_worker.rb'
- 'app/workers/analytics/usage_trends/count_job_trigger_worker.rb'
- 'app/workers/analytics/usage_trends/counter_job_worker.rb'
- 'app/workers/approve_blocked_pending_approval_users_worker.rb'
- 'app/workers/archive_trace_worker.rb'
- 'app/workers/authorized_keys_worker.rb'
- 'app/workers/authorized_project_update/periodic_recalculate_worker.rb'
- 'app/workers/authorized_project_update/project_create_worker.rb'
- 'app/workers/authorized_project_update/project_group_link_create_worker.rb'
- 'app/workers/authorized_project_update/project_recalculate_worker.rb'
- 'app/workers/authorized_project_update/user_refresh_from_replica_worker.rb'
- 'app/workers/authorized_projects_worker.rb'
- 'app/workers/auto_devops/disable_worker.rb'
- 'app/workers/auto_merge_process_worker.rb'
- 'app/workers/background_migration_worker.rb'
- 'app/workers/build_finished_worker.rb'
- 'app/workers/build_success_worker.rb'
- 'app/workers/bulk_import_worker.rb'
- 'app/workers/bulk_imports/entity_worker.rb'
- 'app/workers/bulk_imports/export_request_worker.rb'
- 'app/workers/bulk_imports/pipeline_worker.rb'
- 'app/workers/bulk_imports/relation_export_worker.rb'
- 'app/workers/chaos/cpu_spin_worker.rb'
- 'app/workers/chaos/db_spin_worker.rb'
- 'app/workers/chaos/kill_worker.rb'
- 'app/workers/chaos/leak_mem_worker.rb'
- 'app/workers/chaos/sleep_worker.rb'
- 'app/workers/chat_notification_worker.rb'
- 'app/workers/ci/archive_trace_worker.rb'
- 'app/workers/ci/archive_traces_cron_worker.rb'
- 'app/workers/ci/build_finished_worker.rb'
- 'app/workers/ci/build_prepare_worker.rb'
- 'app/workers/ci/build_schedule_worker.rb'
- 'app/workers/ci/build_trace_chunk_flush_worker.rb'
- 'app/workers/ci/daily_build_group_report_results_worker.rb'
- 'app/workers/ci/delete_objects_worker.rb'
- 'app/workers/ci/delete_unit_tests_worker.rb'
- 'app/workers/ci/drop_pipeline_worker.rb'
- 'app/workers/ci/initial_pipeline_process_worker.rb'
- 'app/workers/ci/merge_requests/add_todo_when_build_fails_worker.rb'
- 'app/workers/ci/pipeline_artifacts/coverage_report_worker.rb'
- 'app/workers/ci/pipeline_artifacts/create_quality_report_worker.rb'
- 'app/workers/ci/pipeline_artifacts/expire_artifacts_worker.rb'
- 'app/workers/ci/pipeline_success_unlock_artifacts_worker.rb'
- 'app/workers/ci/ref_delete_unlock_artifacts_worker.rb'
- 'app/workers/ci/resource_groups/assign_resource_from_resource_group_worker.rb'
- 'app/workers/ci/schedule_delete_objects_cron_worker.rb'
- 'app/workers/ci/test_failure_history_worker.rb'
- 'app/workers/ci_platform_metrics_update_cron_worker.rb'
- 'app/workers/cleanup_container_repository_worker.rb'
- 'app/workers/cluster_configure_istio_worker.rb'
- 'app/workers/cluster_install_app_worker.rb'
- 'app/workers/cluster_patch_app_worker.rb'
- 'app/workers/cluster_provision_worker.rb'
- 'app/workers/cluster_update_app_worker.rb'
- 'app/workers/cluster_upgrade_app_worker.rb'
- 'app/workers/cluster_wait_for_app_installation_worker.rb'
- 'app/workers/cluster_wait_for_app_update_worker.rb'
- 'app/workers/cluster_wait_for_ingress_ip_address_worker.rb'
- 'app/workers/clusters/applications/activate_service_worker.rb'
- 'app/workers/clusters/applications/check_prometheus_health_worker.rb'
- 'app/workers/clusters/applications/deactivate_service_worker.rb'
- 'app/workers/clusters/applications/uninstall_worker.rb'
- 'app/workers/clusters/applications/wait_for_uninstall_app_worker.rb'
- 'app/workers/container_expiration_policies/cleanup_container_repository_worker.rb'
- 'app/workers/container_expiration_policy_worker.rb'
- 'app/workers/create_commit_signature_worker.rb'
- 'app/workers/create_note_diff_file_worker.rb'
- 'app/workers/create_pipeline_worker.rb'
- 'app/workers/database/batched_background_migration_worker.rb'
- 'app/workers/database/partition_management_worker.rb'
- 'app/workers/delete_container_repository_worker.rb'
- 'app/workers/delete_diff_files_worker.rb'
- 'app/workers/delete_merged_branches_worker.rb'
- 'app/workers/delete_stored_files_worker.rb'
- 'app/workers/delete_user_worker.rb'
- 'app/workers/deployments/drop_older_deployments_worker.rb'
- 'app/workers/deployments/finished_worker.rb'
- 'app/workers/deployments/forward_deployment_worker.rb'
- 'app/workers/deployments/hooks_worker.rb'
- 'app/workers/deployments/link_merge_request_worker.rb'
- 'app/workers/deployments/success_worker.rb'
- 'app/workers/deployments/update_environment_worker.rb'
- 'app/workers/design_management/copy_design_collection_worker.rb'
- 'app/workers/design_management/new_version_worker.rb'
- 'app/workers/destroy_pages_deployments_worker.rb'
- 'app/workers/detect_repository_languages_worker.rb'
- 'app/workers/disallow_two_factor_for_group_worker.rb'
- 'app/workers/disallow_two_factor_for_subgroups_worker.rb'
- 'app/workers/email_receiver_worker.rb'
- 'app/workers/emails_on_push_worker.rb'
- 'app/workers/environments/auto_stop_cron_worker.rb'
- 'app/workers/environments/canary_ingress/update_worker.rb'
- 'app/workers/error_tracking_issue_link_worker.rb'
- 'app/workers/experiments/record_conversion_event_worker.rb'
- 'app/workers/expire_build_artifacts_worker.rb'
- 'app/workers/expire_build_instance_artifacts_worker.rb'
- 'app/workers/expire_job_cache_worker.rb'
- 'app/workers/export_csv_worker.rb'
- 'app/workers/file_hook_worker.rb'
- 'app/workers/flush_counter_increments_worker.rb'
- 'app/workers/gitlab/github_import/advance_stage_worker.rb'
- 'app/workers/gitlab/github_import/refresh_import_jid_worker.rb'
- 'app/workers/gitlab/github_import/stage/finish_import_worker.rb'
- 'app/workers/gitlab/github_import/stage/import_base_data_worker.rb'
- 'app/workers/gitlab/github_import/stage/import_issues_and_diff_notes_worker.rb'
- 'app/workers/gitlab/github_import/stage/import_lfs_objects_worker.rb'
- 'app/workers/gitlab/github_import/stage/import_notes_worker.rb'
- 'app/workers/gitlab/github_import/stage/import_pull_requests_merged_by_worker.rb'
- 'app/workers/gitlab/github_import/stage/import_pull_requests_reviews_worker.rb'
- 'app/workers/gitlab/github_import/stage/import_pull_requests_worker.rb'
- 'app/workers/gitlab/github_import/stage/import_repository_worker.rb'
- 'app/workers/gitlab/jira_import/advance_stage_worker.rb'
- 'app/workers/gitlab/jira_import/import_issue_worker.rb'
- 'app/workers/gitlab/jira_import/stage/start_import_worker.rb'
- 'app/workers/gitlab/phabricator_import/import_tasks_worker.rb'
- 'app/workers/gitlab_performance_bar_stats_worker.rb'
- 'app/workers/gitlab_service_ping_worker.rb'
- 'app/workers/gitlab_shell_worker.rb'
- 'app/workers/group_destroy_worker.rb'
- 'app/workers/group_export_worker.rb'
- 'app/workers/group_import_worker.rb'
- 'app/workers/hashed_storage/migrator_worker.rb'
- 'app/workers/hashed_storage/project_migrate_worker.rb'
- 'app/workers/hashed_storage/project_rollback_worker.rb'
- 'app/workers/hashed_storage/rollbacker_worker.rb'
- 'app/workers/import_export_project_cleanup_worker.rb'
- 'app/workers/import_issues_csv_worker.rb'
- 'app/workers/incident_management/add_severity_system_note_worker.rb'
- 'app/workers/incident_management/pager_duty/process_incident_worker.rb'
- 'app/workers/incident_management/process_alert_worker_v2.rb'
- 'app/workers/invalid_gpg_signature_update_worker.rb'
- 'app/workers/irker_worker.rb'
- 'app/workers/issuable/label_links_destroy_worker.rb'
- 'app/workers/issuable_export_csv_worker.rb'
- 'app/workers/issuables/clear_groups_issue_counter_worker.rb'
- 'app/workers/issue_due_scheduler_worker.rb'
- 'app/workers/issue_placement_worker.rb'
- 'app/workers/issue_rebalancing_worker.rb'
- 'app/workers/jira_connect/forward_event_worker.rb'
- 'app/workers/jira_connect/sync_branch_worker.rb'
- 'app/workers/jira_connect/sync_builds_worker.rb'
- 'app/workers/jira_connect/sync_deployments_worker.rb'
- 'app/workers/jira_connect/sync_feature_flags_worker.rb'
- 'app/workers/jira_connect/sync_merge_request_worker.rb'
- 'app/workers/jira_connect/sync_project_worker.rb'
- 'app/workers/mail_scheduler/issue_due_worker.rb'
- 'app/workers/mail_scheduler/notification_service_worker.rb'
- 'app/workers/member_invitation_reminder_emails_worker.rb'
- 'app/workers/members_destroyer/unassign_issuables_worker.rb'
- 'app/workers/merge_request_cleanup_refs_worker.rb'
- 'app/workers/merge_request_mergeability_check_worker.rb'
- 'app/workers/merge_requests/create_pipeline_worker.rb'
- 'app/workers/merge_requests/delete_source_branch_worker.rb'
- 'app/workers/merge_requests/handle_assignees_change_worker.rb'
- 'app/workers/merge_requests/resolve_todos_worker.rb'
- 'app/workers/merge_worker.rb'
- 'app/workers/metrics/dashboard/prune_old_annotations_worker.rb'
- 'app/workers/metrics/dashboard/schedule_annotations_prune_worker.rb'
- 'app/workers/metrics/dashboard/sync_dashboards_worker.rb'
- 'app/workers/migrate_external_diffs_worker.rb'
- 'app/workers/namespaceless_project_destroy_worker.rb'
- 'app/workers/namespaces/in_product_marketing_emails_worker.rb'
- 'app/workers/namespaces/onboarding_issue_created_worker.rb'
- 'app/workers/namespaces/onboarding_pipeline_created_worker.rb'
- 'app/workers/namespaces/onboarding_progress_worker.rb'
- 'app/workers/namespaces/onboarding_user_added_worker.rb'
- 'app/workers/namespaces/prune_aggregation_schedules_worker.rb'
- 'app/workers/namespaces/root_statistics_worker.rb'
- 'app/workers/namespaces/schedule_aggregation_worker.rb'
- 'app/workers/new_issue_worker.rb'
- 'app/workers/new_merge_request_worker.rb'
- 'app/workers/new_note_worker.rb'
- 'app/workers/object_pool/create_worker.rb'
- 'app/workers/object_pool/destroy_worker.rb'
- 'app/workers/object_pool/join_worker.rb'
- 'app/workers/object_pool/schedule_join_worker.rb'
- 'app/workers/object_storage/background_move_worker.rb'
- 'app/workers/object_storage/migrate_uploads_worker.rb'
- 'app/workers/packages/composer/cache_cleanup_worker.rb'
- 'app/workers/packages/composer/cache_update_worker.rb'
- 'app/workers/packages/debian/generate_distribution_worker.rb'
- 'app/workers/packages/debian/process_changes_worker.rb'
- 'app/workers/packages/go/sync_packages_worker.rb'
- 'app/workers/packages/helm/extraction_worker.rb'
- 'app/workers/packages/maven/metadata/sync_worker.rb'
- 'app/workers/packages/nuget/extraction_worker.rb'
- 'app/workers/packages/rubygems/extraction_worker.rb'
- 'app/workers/pages_domain_removal_cron_worker.rb'
- 'app/workers/pages_domain_ssl_renewal_cron_worker.rb'
- 'app/workers/pages_domain_ssl_renewal_worker.rb'
- 'app/workers/pages_domain_verification_cron_worker.rb'
- 'app/workers/pages_domain_verification_worker.rb'
- 'app/workers/pages_remove_worker.rb'
- 'app/workers/pages_transfer_worker.rb'
- 'app/workers/pages_update_configuration_worker.rb'
- 'app/workers/pages_worker.rb'
- 'app/workers/partition_creation_worker.rb'
- 'app/workers/personal_access_tokens/expired_notification_worker.rb'
- 'app/workers/personal_access_tokens/expiring_worker.rb'
- 'app/workers/pipeline_metrics_worker.rb'
- 'app/workers/pipeline_notification_worker.rb'
- 'app/workers/pipeline_process_worker.rb'
- 'app/workers/pipeline_schedule_worker.rb'
- 'app/workers/post_receive.rb'
- 'app/workers/process_commit_worker.rb'
- 'app/workers/project_cache_worker.rb'
- 'app/workers/project_daily_statistics_worker.rb'
- 'app/workers/project_destroy_worker.rb'
- 'app/workers/project_export_worker.rb'
- 'app/workers/project_service_worker.rb'
- 'app/workers/projects/post_creation_worker.rb'
- 'app/workers/projects/schedule_bulk_repository_shard_moves_worker.rb'
- 'app/workers/prometheus/create_default_alerts_worker.rb'
- 'app/workers/propagate_integration_group_worker.rb'
- 'app/workers/propagate_integration_inherit_descendant_worker.rb'
- 'app/workers/propagate_integration_inherit_worker.rb'
- 'app/workers/propagate_integration_project_worker.rb'
- 'app/workers/propagate_integration_worker.rb'
- 'app/workers/propagate_service_template_worker.rb'
- 'app/workers/prune_old_events_worker.rb'
- 'app/workers/purge_dependency_proxy_cache_worker.rb'
- 'app/workers/rebase_worker.rb'
- 'app/workers/releases/create_evidence_worker.rb'
- 'app/workers/releases/manage_evidence_worker.rb'
- 'app/workers/remote_mirror_notification_worker.rb'
- 'app/workers/remove_expired_group_links_worker.rb'
- 'app/workers/remove_expired_members_worker.rb'
- 'app/workers/remove_unaccepted_member_invites_worker.rb'
- 'app/workers/remove_unreferenced_lfs_objects_worker.rb'
- 'app/workers/repository_archive_cache_worker.rb'
- 'app/workers/repository_check/batch_worker.rb'
- 'app/workers/repository_check/clear_worker.rb'
- 'app/workers/repository_check/dispatch_worker.rb'
- 'app/workers/repository_check/single_repository_worker.rb'
- 'app/workers/repository_cleanup_worker.rb'
- 'app/workers/repository_fork_worker.rb'
- 'app/workers/repository_import_worker.rb'
- 'app/workers/repository_remove_remote_worker.rb'
- 'app/workers/repository_update_remote_mirror_worker.rb'
- 'app/workers/requests_profiles_worker.rb'
- 'app/workers/run_pipeline_schedule_worker.rb'
- 'app/workers/schedule_merge_request_cleanup_refs_worker.rb'
- 'app/workers/schedule_migrate_external_diffs_worker.rb'
- 'app/workers/self_monitoring_project_create_worker.rb'
- 'app/workers/self_monitoring_project_delete_worker.rb'
- 'app/workers/service_desk_email_receiver_worker.rb'
- 'app/workers/snippets/schedule_bulk_repository_shard_moves_worker.rb'
- 'app/workers/ssh_keys/expired_notification_worker.rb'
- 'app/workers/ssh_keys/expiring_soon_notification_worker.rb'
- 'app/workers/stage_update_worker.rb'
- 'app/workers/stuck_ci_jobs_worker.rb'
- 'app/workers/stuck_export_jobs_worker.rb'
- 'app/workers/stuck_merge_jobs_worker.rb'
- 'app/workers/system_hook_push_worker.rb'
- 'app/workers/todos_destroyer/confidential_issue_worker.rb'
- 'app/workers/todos_destroyer/destroyed_issuable_worker.rb'
- 'app/workers/todos_destroyer/entity_leave_worker.rb'
- 'app/workers/todos_destroyer/group_private_worker.rb'
- 'app/workers/todos_destroyer/private_features_worker.rb'
- 'app/workers/todos_destroyer/project_private_worker.rb'
- 'app/workers/trending_projects_worker.rb'
- 'app/workers/update_container_registry_info_worker.rb'
- 'app/workers/update_external_pull_requests_worker.rb'
- 'app/workers/update_head_pipeline_for_merge_request_worker.rb'
- 'app/workers/update_highest_role_worker.rb'
- 'app/workers/update_merge_requests_worker.rb'
- 'app/workers/update_project_statistics_worker.rb'
- 'app/workers/upload_checksum_worker.rb'
- 'app/workers/user_status_cleanup/batch_worker.rb'
- 'app/workers/users/create_statistics_worker.rb'
- 'app/workers/users/deactivate_dormant_users_worker.rb'
- 'app/workers/wait_for_cluster_creation_worker.rb'
- 'app/workers/web_hooks/destroy_worker.rb'
- 'app/workers/web_hooks/log_execution_worker.rb'
- 'app/workers/x509_certificate_revoke_worker.rb'
- 'app/workers/x509_issuer_crl_check_worker.rb'
- 'ee/app/workers/active_user_count_threshold_worker.rb'
- 'ee/app/workers/adjourned_group_deletion_worker.rb'
- 'ee/app/workers/adjourned_project_deletion_worker.rb'
- 'ee/app/workers/adjourned_projects_deletion_cron_worker.rb'
- 'ee/app/workers/admin_emails_worker.rb'
- 'ee/app/workers/analytics/code_review_metrics_worker.rb'
- 'ee/app/workers/analytics/devops_adoption/create_all_snapshots_worker.rb'
- 'ee/app/workers/analytics/devops_adoption/create_snapshot_worker.rb'
- 'ee/app/workers/approval_rules/external_approval_rule_payload_worker.rb'
- 'ee/app/workers/ci/batch_reset_minutes_worker.rb'
- 'ee/app/workers/ci/sync_reports_to_report_approval_rules_worker.rb'
- 'ee/app/workers/clear_shared_runners_minutes_worker.rb'
- 'ee/app/workers/create_github_webhook_worker.rb'
- 'ee/app/workers/dast_site_validation_worker.rb'
- 'ee/app/workers/deployments/auto_rollback_worker.rb'
- 'ee/app/workers/dora/daily_metrics/refresh_worker.rb'
- 'ee/app/workers/dora/daily_metrics/refresh_worker.rb'
- 'ee/app/workers/elastic/migration_worker.rb'
- 'ee/app/workers/elastic_association_indexer_worker.rb'
- 'ee/app/workers/elastic_cluster_reindexing_cron_worker.rb'
- 'ee/app/workers/elastic_commit_indexer_worker.rb'
- 'ee/app/workers/elastic_delete_project_worker.rb'
- 'ee/app/workers/elastic_full_index_worker.rb'
- 'ee/app/workers/elastic_indexing_control_worker.rb'
- 'ee/app/workers/elastic_namespace_indexer_worker.rb'
- 'ee/app/workers/elastic_namespace_rollout_worker.rb'
- 'ee/app/workers/elastic_remove_expired_namespace_subscriptions_from_index_cron_worker.rb'
- 'ee/app/workers/epics/new_epic_issue_worker.rb'
- 'ee/app/workers/epics/update_epics_dates_worker.rb'
- 'ee/app/workers/geo/batch/project_registry_scheduler_worker.rb'
- 'ee/app/workers/geo/batch/project_registry_worker.rb'
- 'ee/app/workers/geo/container_repository_sync_worker.rb'
- 'ee/app/workers/geo/design_repository_sync_worker.rb'
- 'ee/app/workers/geo/destroy_worker.rb'
- 'ee/app/workers/geo/event_worker.rb'
- 'ee/app/workers/geo/file_download_worker.rb'
- 'ee/app/workers/geo/file_registry_removal_worker.rb'
- 'ee/app/workers/geo/file_removal_worker.rb'
- 'ee/app/workers/geo/hashed_storage_attachments_migration_worker.rb'
- 'ee/app/workers/geo/hashed_storage_migration_worker.rb'
- 'ee/app/workers/geo/metrics_update_worker.rb'
- 'ee/app/workers/geo/project_sync_worker.rb'
- 'ee/app/workers/geo/prune_event_log_worker.rb'
- 'ee/app/workers/geo/rename_repository_worker.rb'
- 'ee/app/workers/geo/repositories_clean_up_worker.rb'
- 'ee/app/workers/geo/repository_cleanup_worker.rb'
- 'ee/app/workers/geo/repository_verification/primary/single_worker.rb'
- 'ee/app/workers/geo/repository_verification/secondary/single_worker.rb'
- 'ee/app/workers/geo/reverification_batch_worker.rb'
- 'ee/app/workers/geo/scheduler/per_shard_scheduler_worker.rb'
- 'ee/app/workers/geo/scheduler/scheduler_worker.rb'
- 'ee/app/workers/geo/secondary/registry_consistency_worker.rb'
- 'ee/app/workers/geo/secondary_usage_data_cron_worker.rb'
- 'ee/app/workers/geo/sidekiq_cron_config_worker.rb'
- 'ee/app/workers/geo/sync_timeout_cron_worker.rb'
- 'ee/app/workers/geo/verification_batch_worker.rb'
- 'ee/app/workers/geo/verification_cron_worker.rb'
- 'ee/app/workers/geo/verification_timeout_worker.rb'
- 'ee/app/workers/geo/verification_worker.rb'
- 'ee/app/workers/geo_repository_destroy_worker.rb'
- 'ee/app/workers/group_saml_group_sync_worker.rb'
- 'ee/app/workers/groups/schedule_bulk_repository_shard_moves_worker.rb'
- 'ee/app/workers/groups/update_statistics_worker.rb'
- 'ee/app/workers/historical_data_worker.rb'
- 'ee/app/workers/import_software_licenses_worker.rb'
- 'ee/app/workers/incident_management/apply_incident_sla_exceeded_label_worker.rb'
- 'ee/app/workers/incident_management/incident_sla_exceeded_check_worker.rb'
- 'ee/app/workers/incident_management/oncall_rotations/persist_all_rotations_shifts_job.rb'
- 'ee/app/workers/incident_management/oncall_rotations/persist_shifts_job.rb'
- 'ee/app/workers/incident_management/pending_escalations/alert_check_worker.rb'
- 'ee/app/workers/incident_management/pending_escalations/alert_create_worker.rb'
- 'ee/app/workers/incident_management/pending_escalations/schedule_check_cron_worker.rb'
- 'ee/app/workers/iterations/cadences/create_iterations_worker.rb'
- 'ee/app/workers/iterations/cadences/schedule_create_iterations_worker.rb'
- 'ee/app/workers/iterations/roll_over_issues_worker.rb'
- 'ee/app/workers/iterations_update_status_worker.rb'
- 'ee/app/workers/ldap_all_groups_sync_worker.rb'
- 'ee/app/workers/ldap_group_sync_worker.rb'
- 'ee/app/workers/ldap_sync_worker.rb'
- 'ee/app/workers/merge_request_reset_approvals_worker.rb'
- 'ee/app/workers/merge_requests/sync_code_owner_approval_rules_worker.rb'
- 'ee/app/workers/merge_trains/refresh_worker.rb'
- 'ee/app/workers/network_policy_metrics_worker.rb'
- 'ee/app/workers/new_epic_worker.rb'
- 'ee/app/workers/personal_access_tokens/groups/policy_worker.rb'
- 'ee/app/workers/personal_access_tokens/instance/policy_worker.rb'
- 'ee/app/workers/project_import_schedule_worker.rb'
- 'ee/app/workers/pseudonymizer_worker.rb'
- 'ee/app/workers/refresh_license_compliance_checks_worker.rb'
- 'ee/app/workers/repository_push_audit_event_worker.rb'
- 'ee/app/workers/repository_update_mirror_worker.rb'
- 'ee/app/workers/requirements_management/import_requirements_csv_worker.rb'
- 'ee/app/workers/requirements_management/process_requirements_reports_worker.rb'
- 'ee/app/workers/scan_security_report_secrets_worker.rb'
- 'ee/app/workers/security/auto_fix_worker.rb'
- 'ee/app/workers/security/create_orchestration_policy_worker.rb'
- 'ee/app/workers/security/orchestration_policy_rule_schedule_worker.rb'
- 'ee/app/workers/security/store_scans_worker.rb'
- 'ee/app/workers/security/track_secure_scans_worker.rb'
- 'ee/app/workers/set_user_status_based_on_user_cap_setting_worker.rb'
- 'ee/app/workers/status_page/publish_worker.rb'
- 'ee/app/workers/store_security_reports_worker.rb'
- 'ee/app/workers/store_security_scans_worker.rb'
- 'ee/app/workers/sync_seat_link_request_worker.rb'
- 'ee/app/workers/sync_seat_link_worker.rb'
- 'ee/app/workers/todos_destroyer/confidential_epic_worker.rb'
- 'ee/app/workers/update_all_mirrors_worker.rb'
- 'ee/app/workers/update_max_seats_used_for_gitlab_com_subscriptions_worker.rb'
- 'ee/app/workers/vulnerabilities/historical_statistics/deletion_worker.rb'
- 'ee/app/workers/vulnerabilities/statistics/adjustment_worker.rb'
- 'ee/app/workers/vulnerabilities/statistics/schedule_worker.rb'
- 'ee/app/workers/vulnerability_exports/export_deletion_worker.rb'
- 'ee/app/workers/vulnerability_exports/export_worker.rb'
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class AdminEmailWorker # rubocop:disable Scalability/IdempotentWorker class AdminEmailWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -6,6 +6,8 @@ module Analytics ...@@ -6,6 +6,8 @@ module Analytics
extend ::Gitlab::Utils::Override extend ::Gitlab::Utils::Override
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -6,6 +6,8 @@ module Analytics ...@@ -6,6 +6,8 @@ module Analytics
extend ::Gitlab::Utils::Override extend ::Gitlab::Utils::Override
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :devops_reports feature_category :devops_reports
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ApproveBlockedPendingApprovalUsersWorker class ApproveBlockedPendingApprovalUsersWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
idempotent! idempotent!
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class AuthorizedKeysWorker class AuthorizedKeysWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
PERMITTED_ACTIONS = %w[add_key remove_key].freeze PERMITTED_ACTIONS = %w[add_key remove_key].freeze
......
...@@ -4,6 +4,8 @@ module AuthorizedProjectUpdate ...@@ -4,6 +4,8 @@ module AuthorizedProjectUpdate
class PeriodicRecalculateWorker class PeriodicRecalculateWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -4,6 +4,8 @@ module AuthorizedProjectUpdate ...@@ -4,6 +4,8 @@ module AuthorizedProjectUpdate
class ProjectCreateWorker class ProjectCreateWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :authentication_and_authorization feature_category :authentication_and_authorization
......
...@@ -4,6 +4,8 @@ module AuthorizedProjectUpdate ...@@ -4,6 +4,8 @@ module AuthorizedProjectUpdate
class ProjectGroupLinkCreateWorker class ProjectGroupLinkCreateWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :authentication_and_authorization feature_category :authentication_and_authorization
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module AuthorizedProjectUpdate module AuthorizedProjectUpdate
class ProjectRecalculateWorker class ProjectRecalculateWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include Gitlab::ExclusiveLeaseHelpers include Gitlab::ExclusiveLeaseHelpers
feature_category :authentication_and_authorization feature_category :authentication_and_authorization
......
...@@ -7,6 +7,7 @@ module AuthorizedProjectUpdate ...@@ -7,6 +7,7 @@ module AuthorizedProjectUpdate
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :authentication_and_authorization feature_category :authentication_and_authorization
urgency :low urgency :low
data_consistency :always
queue_namespace :authorized_project_update queue_namespace :authorized_project_update
idempotent! idempotent!
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class AuthorizedProjectsWorker class AuthorizedProjectsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
prepend WaitableWorker prepend WaitableWorker
......
...@@ -4,6 +4,8 @@ module AutoDevops ...@@ -4,6 +4,8 @@ module AutoDevops
class DisableWorker # rubocop:disable Scalability/IdempotentWorker class DisableWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include AutoDevopsQueue include AutoDevopsQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class AutoMergeProcessWorker # rubocop:disable Scalability/IdempotentWorker class AutoMergeProcessWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :auto_merge queue_namespace :auto_merge
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class BackgroundMigrationWorker # rubocop:disable Scalability/IdempotentWorker class BackgroundMigrationWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :database feature_category :database
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class BuildSuccessWorker # rubocop:disable Scalability/IdempotentWorker class BuildSuccessWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class BulkImportWorker # rubocop:disable Scalability/IdempotentWorker class BulkImportWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
feature_category :importers feature_category :importers
tags :exclude_from_kubernetes tags :exclude_from_kubernetes
......
...@@ -4,6 +4,8 @@ module BulkImports ...@@ -4,6 +4,8 @@ module BulkImports
class EntityWorker # rubocop:disable Scalability/IdempotentWorker class EntityWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
feature_category :importers feature_category :importers
tags :exclude_from_kubernetes tags :exclude_from_kubernetes
......
...@@ -4,6 +4,8 @@ module BulkImports ...@@ -4,6 +4,8 @@ module BulkImports
class ExportRequestWorker class ExportRequestWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
idempotent! idempotent!
worker_has_external_dependencies! worker_has_external_dependencies!
feature_category :importers feature_category :importers
......
...@@ -4,6 +4,8 @@ module BulkImports ...@@ -4,6 +4,8 @@ module BulkImports
class PipelineWorker # rubocop:disable Scalability/IdempotentWorker class PipelineWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
NDJSON_PIPELINE_PERFORM_DELAY = 1.minute NDJSON_PIPELINE_PERFORM_DELAY = 1.minute
feature_category :importers feature_category :importers
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module BulkImports module BulkImports
class RelationExportWorker class RelationExportWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include ExceptionBacktrace include ExceptionBacktrace
idempotent! idempotent!
......
...@@ -4,6 +4,8 @@ module Chaos ...@@ -4,6 +4,8 @@ module Chaos
class CpuSpinWorker # rubocop:disable Scalability/IdempotentWorker class CpuSpinWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ChaosQueue include ChaosQueue
......
...@@ -4,6 +4,8 @@ module Chaos ...@@ -4,6 +4,8 @@ module Chaos
class DbSpinWorker # rubocop:disable Scalability/IdempotentWorker class DbSpinWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ChaosQueue include ChaosQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Chaos module Chaos
class KillWorker # rubocop:disable Scalability/IdempotentWorker class KillWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include ChaosQueue include ChaosQueue
sidekiq_options retry: false sidekiq_options retry: false
......
...@@ -4,6 +4,8 @@ module Chaos ...@@ -4,6 +4,8 @@ module Chaos
class LeakMemWorker # rubocop:disable Scalability/IdempotentWorker class LeakMemWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ChaosQueue include ChaosQueue
......
...@@ -4,6 +4,8 @@ module Chaos ...@@ -4,6 +4,8 @@ module Chaos
class SleepWorker # rubocop:disable Scalability/IdempotentWorker class SleepWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ChaosQueue include ChaosQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ChatNotificationWorker # rubocop:disable Scalability/IdempotentWorker class ChatNotificationWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
TimeoutExceeded = Class.new(StandardError) TimeoutExceeded = Class.new(StandardError)
sidekiq_options retry: false sidekiq_options retry: false
......
...@@ -4,6 +4,8 @@ module Ci ...@@ -4,6 +4,8 @@ module Ci
class ArchiveTraceWorker # rubocop:disable Scalability/IdempotentWorker class ArchiveTraceWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineBackgroundQueue include PipelineBackgroundQueue
......
...@@ -4,6 +4,8 @@ module Ci ...@@ -4,6 +4,8 @@ module Ci
class ArchiveTracesCronWorker # rubocop:disable Scalability/IdempotentWorker class ArchiveTracesCronWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -4,6 +4,8 @@ module Ci ...@@ -4,6 +4,8 @@ module Ci
class BuildFinishedWorker # rubocop:disable Scalability/IdempotentWorker class BuildFinishedWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
......
...@@ -4,6 +4,8 @@ module Ci ...@@ -4,6 +4,8 @@ module Ci
class BuildPrepareWorker # rubocop:disable Scalability/IdempotentWorker class BuildPrepareWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
......
...@@ -4,6 +4,8 @@ module Ci ...@@ -4,6 +4,8 @@ module Ci
class BuildScheduleWorker # rubocop:disable Scalability/IdempotentWorker class BuildScheduleWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
......
...@@ -4,6 +4,8 @@ module Ci ...@@ -4,6 +4,8 @@ module Ci
class BuildTraceChunkFlushWorker class BuildTraceChunkFlushWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineBackgroundQueue include PipelineBackgroundQueue
......
...@@ -4,6 +4,8 @@ module Ci ...@@ -4,6 +4,8 @@ module Ci
class DailyBuildGroupReportResultsWorker class DailyBuildGroupReportResultsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineBackgroundQueue include PipelineBackgroundQueue
......
...@@ -4,6 +4,8 @@ module Ci ...@@ -4,6 +4,8 @@ module Ci
class DeleteObjectsWorker class DeleteObjectsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include LimitedCapacity::Worker include LimitedCapacity::Worker
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Ci module Ci
class DeleteUnitTestsWorker class DeleteUnitTestsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
include CronjobQueue include CronjobQueue
......
...@@ -4,6 +4,8 @@ module Ci ...@@ -4,6 +4,8 @@ module Ci
class DropPipelineWorker class DropPipelineWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
......
...@@ -4,6 +4,8 @@ module Ci ...@@ -4,6 +4,8 @@ module Ci
class InitialPipelineProcessWorker class InitialPipelineProcessWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
......
...@@ -4,6 +4,8 @@ module Ci ...@@ -4,6 +4,8 @@ module Ci
class AddTodoWhenBuildFailsWorker class AddTodoWhenBuildFailsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
......
...@@ -5,6 +5,8 @@ module Ci ...@@ -5,6 +5,8 @@ module Ci
class CoverageReportWorker class CoverageReportWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineBackgroundQueue include PipelineBackgroundQueue
......
...@@ -5,6 +5,8 @@ module Ci ...@@ -5,6 +5,8 @@ module Ci
class CreateQualityReportWorker class CreateQualityReportWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :pipeline_background queue_namespace :pipeline_background
......
...@@ -5,6 +5,8 @@ module Ci ...@@ -5,6 +5,8 @@ module Ci
class ExpireArtifactsWorker class ExpireArtifactsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -4,6 +4,8 @@ module Ci ...@@ -4,6 +4,8 @@ module Ci
class PipelineSuccessUnlockArtifactsWorker class PipelineSuccessUnlockArtifactsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineBackgroundQueue include PipelineBackgroundQueue
......
...@@ -4,6 +4,8 @@ module Ci ...@@ -4,6 +4,8 @@ module Ci
class RefDeleteUnlockArtifactsWorker class RefDeleteUnlockArtifactsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineBackgroundQueue include PipelineBackgroundQueue
......
...@@ -8,6 +8,8 @@ module Ci ...@@ -8,6 +8,8 @@ module Ci
class AssignResourceFromResourceGroupWorker class AssignResourceFromResourceGroupWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
......
...@@ -4,6 +4,8 @@ module Ci ...@@ -4,6 +4,8 @@ module Ci
class ScheduleDeleteObjectsCronWorker class ScheduleDeleteObjectsCronWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -4,6 +4,8 @@ module Ci ...@@ -4,6 +4,8 @@ module Ci
class TestFailureHistoryWorker class TestFailureHistoryWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineBackgroundQueue include PipelineBackgroundQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class CiPlatformMetricsUpdateCronWorker # rubocop:disable Scalability/IdempotentWorker class CiPlatformMetricsUpdateCronWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class CleanupContainerRepositoryWorker class CleanupContainerRepositoryWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :container_repository queue_namespace :container_repository
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ClusterConfigureIstioWorker # rubocop:disable Scalability/IdempotentWorker class ClusterConfigureIstioWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ClusterInstallAppWorker # rubocop:disable Scalability/IdempotentWorker class ClusterInstallAppWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
include ClusterApplications include ClusterApplications
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ClusterPatchAppWorker # rubocop:disable Scalability/IdempotentWorker class ClusterPatchAppWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
include ClusterApplications include ClusterApplications
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ClusterProvisionWorker # rubocop:disable Scalability/IdempotentWorker class ClusterProvisionWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
......
...@@ -5,6 +5,8 @@ class ClusterUpdateAppWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -5,6 +5,8 @@ class ClusterUpdateAppWorker # rubocop:disable Scalability/IdempotentWorker
UpdateAlreadyInProgressError = Class.new(StandardError) UpdateAlreadyInProgressError = Class.new(StandardError)
include ApplicationWorker include ApplicationWorker
data_consistency :always
include ClusterQueue include ClusterQueue
include ClusterApplications include ClusterApplications
include ExclusiveLeaseGuard include ExclusiveLeaseGuard
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ClusterUpgradeAppWorker # rubocop:disable Scalability/IdempotentWorker class ClusterUpgradeAppWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
include ClusterApplications include ClusterApplications
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ClusterWaitForAppInstallationWorker # rubocop:disable Scalability/IdempotentWorker class ClusterWaitForAppInstallationWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
include ClusterApplications include ClusterApplications
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ClusterWaitForAppUpdateWorker # rubocop:disable Scalability/IdempotentWorker class ClusterWaitForAppUpdateWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
include ClusterApplications include ClusterApplications
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ClusterWaitForIngressIpAddressWorker # rubocop:disable Scalability/IdempotentWorker class ClusterWaitForIngressIpAddressWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
include ClusterApplications include ClusterApplications
......
...@@ -5,6 +5,8 @@ module Clusters ...@@ -5,6 +5,8 @@ module Clusters
class ActivateServiceWorker # rubocop:disable Scalability/IdempotentWorker class ActivateServiceWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
......
...@@ -5,6 +5,8 @@ module Clusters ...@@ -5,6 +5,8 @@ module Clusters
class CheckPrometheusHealthWorker class CheckPrometheusHealthWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -5,6 +5,8 @@ module Clusters ...@@ -5,6 +5,8 @@ module Clusters
class DeactivateServiceWorker # rubocop:disable Scalability/IdempotentWorker class DeactivateServiceWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
......
...@@ -5,6 +5,8 @@ module Clusters ...@@ -5,6 +5,8 @@ module Clusters
class UninstallWorker # rubocop:disable Scalability/IdempotentWorker class UninstallWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
include ClusterApplications include ClusterApplications
......
...@@ -5,6 +5,8 @@ module Clusters ...@@ -5,6 +5,8 @@ module Clusters
class WaitForUninstallAppWorker # rubocop:disable Scalability/IdempotentWorker class WaitForUninstallAppWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
include ClusterApplications include ClusterApplications
......
...@@ -4,6 +4,8 @@ module ContainerExpirationPolicies ...@@ -4,6 +4,8 @@ module ContainerExpirationPolicies
class CleanupContainerRepositoryWorker class CleanupContainerRepositoryWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include LimitedCapacity::Worker include LimitedCapacity::Worker
include Gitlab::Utils::StrongMemoize include Gitlab::Utils::StrongMemoize
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ContainerExpirationPolicyWorker # rubocop:disable Scalability/IdempotentWorker class ContainerExpirationPolicyWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue include CronjobQueue
include ExclusiveLeaseGuard include ExclusiveLeaseGuard
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class CreateCommitSignatureWorker class CreateCommitSignatureWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :source_code_management feature_category :source_code_management
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class CreateNoteDiffFileWorker # rubocop:disable Scalability/IdempotentWorker class CreateNoteDiffFileWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :code_review feature_category :code_review
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class CreatePipelineWorker # rubocop:disable Scalability/IdempotentWorker class CreatePipelineWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
......
...@@ -4,6 +4,8 @@ module Database ...@@ -4,6 +4,8 @@ module Database
class BatchedBackgroundMigrationWorker class BatchedBackgroundMigrationWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -7,6 +7,8 @@ module Database ...@@ -7,6 +7,8 @@ module Database
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
data_consistency :always
feature_category :database feature_category :database
idempotent! idempotent!
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class DeleteContainerRepositoryWorker # rubocop:disable Scalability/IdempotentWorker class DeleteContainerRepositoryWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ExclusiveLeaseGuard include ExclusiveLeaseGuard
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class DeleteDiffFilesWorker # rubocop:disable Scalability/IdempotentWorker class DeleteDiffFilesWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :code_review feature_category :code_review
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class DeleteMergedBranchesWorker # rubocop:disable Scalability/IdempotentWorker class DeleteMergedBranchesWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :source_code_management feature_category :source_code_management
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class DeleteStoredFilesWorker # rubocop:disable Scalability/IdempotentWorker class DeleteStoredFilesWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category_not_owned! feature_category_not_owned!
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class DeleteUserWorker # rubocop:disable Scalability/IdempotentWorker class DeleteUserWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :authentication_and_authorization feature_category :authentication_and_authorization
......
...@@ -4,6 +4,8 @@ module Deployments ...@@ -4,6 +4,8 @@ module Deployments
class DropOlderDeploymentsWorker # rubocop:disable Scalability/IdempotentWorker class DropOlderDeploymentsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :deployment queue_namespace :deployment
......
...@@ -6,6 +6,8 @@ module Deployments ...@@ -6,6 +6,8 @@ module Deployments
class FinishedWorker # rubocop:disable Scalability/IdempotentWorker class FinishedWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :deployment queue_namespace :deployment
......
...@@ -6,6 +6,8 @@ module Deployments ...@@ -6,6 +6,8 @@ module Deployments
class ForwardDeploymentWorker # rubocop:disable Scalability/IdempotentWorker class ForwardDeploymentWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :deployment queue_namespace :deployment
......
...@@ -4,6 +4,8 @@ module Deployments ...@@ -4,6 +4,8 @@ module Deployments
class HooksWorker # rubocop:disable Scalability/IdempotentWorker class HooksWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
queue_namespace :deployment queue_namespace :deployment
feature_category :continuous_delivery feature_category :continuous_delivery
......
...@@ -4,6 +4,8 @@ module Deployments ...@@ -4,6 +4,8 @@ module Deployments
class LinkMergeRequestWorker class LinkMergeRequestWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :deployment queue_namespace :deployment
......
...@@ -6,6 +6,8 @@ module Deployments ...@@ -6,6 +6,8 @@ module Deployments
class SuccessWorker # rubocop:disable Scalability/IdempotentWorker class SuccessWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :deployment queue_namespace :deployment
......
...@@ -4,6 +4,8 @@ module Deployments ...@@ -4,6 +4,8 @@ module Deployments
class UpdateEnvironmentWorker class UpdateEnvironmentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :deployment queue_namespace :deployment
......
...@@ -4,6 +4,8 @@ module DesignManagement ...@@ -4,6 +4,8 @@ module DesignManagement
class CopyDesignCollectionWorker class CopyDesignCollectionWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :design_management feature_category :design_management
......
...@@ -4,6 +4,8 @@ module DesignManagement ...@@ -4,6 +4,8 @@ module DesignManagement
class NewVersionWorker # rubocop:disable Scalability/IdempotentWorker class NewVersionWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :design_management feature_category :design_management
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class DestroyPagesDeploymentsWorker class DestroyPagesDeploymentsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
idempotent! idempotent!
loggable_arguments 0, 1 loggable_arguments 0, 1
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class DetectRepositoryLanguagesWorker # rubocop:disable Scalability/IdempotentWorker class DetectRepositoryLanguagesWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include ExceptionBacktrace include ExceptionBacktrace
include ExclusiveLeaseGuard include ExclusiveLeaseGuard
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class DisallowTwoFactorForGroupWorker class DisallowTwoFactorForGroupWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ExceptionBacktrace include ExceptionBacktrace
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class DisallowTwoFactorForSubgroupsWorker class DisallowTwoFactorForSubgroupsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ExceptionBacktrace include ExceptionBacktrace
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class EmailReceiverWorker # rubocop:disable Scalability/IdempotentWorker class EmailReceiverWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :issue_tracking feature_category :issue_tracking
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class EmailsOnPushWorker # rubocop:disable Scalability/IdempotentWorker class EmailsOnPushWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
attr_reader :email, :skip_premailer attr_reader :email, :skip_premailer
......
...@@ -4,6 +4,8 @@ module Environments ...@@ -4,6 +4,8 @@ module Environments
class AutoStopCronWorker # rubocop:disable Scalability/IdempotentWorker class AutoStopCronWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -5,6 +5,8 @@ module Environments ...@@ -5,6 +5,8 @@ module Environments
class UpdateWorker class UpdateWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: false sidekiq_options retry: false
idempotent! idempotent!
worker_has_external_dependencies! worker_has_external_dependencies!
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
class ErrorTrackingIssueLinkWorker # rubocop:disable Scalability/IdempotentWorker class ErrorTrackingIssueLinkWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ExclusiveLeaseGuard include ExclusiveLeaseGuard
include Gitlab::Utils::StrongMemoize include Gitlab::Utils::StrongMemoize
......
...@@ -4,6 +4,8 @@ module Experiments ...@@ -4,6 +4,8 @@ module Experiments
class RecordConversionEventWorker class RecordConversionEventWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :users feature_category :users
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ExpireBuildArtifactsWorker # rubocop:disable Scalability/IdempotentWorker class ExpireBuildArtifactsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ExpireBuildInstanceArtifactsWorker # rubocop:disable Scalability/IdempotentWorker class ExpireBuildInstanceArtifactsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :continuous_integration feature_category :continuous_integration
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ExpireJobCacheWorker class ExpireJobCacheWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ExportCsvWorker # rubocop:disable Scalability/IdempotentWorker class ExportCsvWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :issue_tracking feature_category :issue_tracking
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class FileHookWorker # rubocop:disable Scalability/IdempotentWorker class FileHookWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: false sidekiq_options retry: false
feature_category :integrations feature_category :integrations
loggable_arguments 0 loggable_arguments 0
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
class FlushCounterIncrementsWorker class FlushCounterIncrementsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category_not_owned! feature_category_not_owned!
......
...@@ -9,6 +9,8 @@ module Gitlab ...@@ -9,6 +9,8 @@ module Gitlab
class AdvanceStageWorker # rubocop:disable Scalability/IdempotentWorker class AdvanceStageWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ::Gitlab::Import::AdvanceStage include ::Gitlab::Import::AdvanceStage
......
...@@ -5,6 +5,8 @@ module Gitlab ...@@ -5,6 +5,8 @@ module Gitlab
class RefreshImportJidWorker # rubocop:disable Scalability/IdempotentWorker class RefreshImportJidWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GithubImport::Queue include GithubImport::Queue
......
...@@ -6,6 +6,8 @@ module Gitlab ...@@ -6,6 +6,8 @@ module Gitlab
class FinishImportWorker # rubocop:disable Scalability/IdempotentWorker class FinishImportWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GithubImport::Queue include GithubImport::Queue
include StageMethods include StageMethods
......
...@@ -6,6 +6,8 @@ module Gitlab ...@@ -6,6 +6,8 @@ module Gitlab
class ImportBaseDataWorker # rubocop:disable Scalability/IdempotentWorker class ImportBaseDataWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GithubImport::Queue include GithubImport::Queue
include StageMethods include StageMethods
......
...@@ -6,6 +6,8 @@ module Gitlab ...@@ -6,6 +6,8 @@ module Gitlab
class ImportIssuesAndDiffNotesWorker # rubocop:disable Scalability/IdempotentWorker class ImportIssuesAndDiffNotesWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GithubImport::Queue include GithubImport::Queue
include StageMethods include StageMethods
......
...@@ -6,6 +6,8 @@ module Gitlab ...@@ -6,6 +6,8 @@ module Gitlab
class ImportLfsObjectsWorker # rubocop:disable Scalability/IdempotentWorker class ImportLfsObjectsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GithubImport::Queue include GithubImport::Queue
include StageMethods include StageMethods
......
...@@ -6,6 +6,8 @@ module Gitlab ...@@ -6,6 +6,8 @@ module Gitlab
class ImportNotesWorker # rubocop:disable Scalability/IdempotentWorker class ImportNotesWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GithubImport::Queue include GithubImport::Queue
include StageMethods include StageMethods
......
...@@ -6,6 +6,8 @@ module Gitlab ...@@ -6,6 +6,8 @@ module Gitlab
class ImportPullRequestsMergedByWorker # rubocop:disable Scalability/IdempotentWorker class ImportPullRequestsMergedByWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GithubImport::Queue include GithubImport::Queue
include StageMethods include StageMethods
......
...@@ -6,6 +6,8 @@ module Gitlab ...@@ -6,6 +6,8 @@ module Gitlab
class ImportPullRequestsReviewsWorker # rubocop:disable Scalability/IdempotentWorker class ImportPullRequestsReviewsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GithubImport::Queue include GithubImport::Queue
include StageMethods include StageMethods
......
...@@ -6,6 +6,8 @@ module Gitlab ...@@ -6,6 +6,8 @@ module Gitlab
class ImportPullRequestsWorker # rubocop:disable Scalability/IdempotentWorker class ImportPullRequestsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GithubImport::Queue include GithubImport::Queue
include StageMethods include StageMethods
......
...@@ -6,6 +6,8 @@ module Gitlab ...@@ -6,6 +6,8 @@ module Gitlab
class ImportRepositoryWorker # rubocop:disable Scalability/IdempotentWorker class ImportRepositoryWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GithubImport::Queue include GithubImport::Queue
include StageMethods include StageMethods
......
...@@ -5,6 +5,8 @@ module Gitlab ...@@ -5,6 +5,8 @@ module Gitlab
class AdvanceStageWorker # rubocop:disable Scalability/IdempotentWorker class AdvanceStageWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include QueueOptions include QueueOptions
include ::Gitlab::Import::AdvanceStage include ::Gitlab::Import::AdvanceStage
......
...@@ -5,6 +5,8 @@ module Gitlab ...@@ -5,6 +5,8 @@ module Gitlab
class ImportIssueWorker # rubocop:disable Scalability/IdempotentWorker class ImportIssueWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include NotifyUponDeath include NotifyUponDeath
include Gitlab::JiraImport::QueueOptions include Gitlab::JiraImport::QueueOptions
......
...@@ -6,6 +6,8 @@ module Gitlab ...@@ -6,6 +6,8 @@ module Gitlab
class StartImportWorker # rubocop:disable Scalability/IdempotentWorker class StartImportWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ProjectStartImport include ProjectStartImport
include ProjectImportOptions include ProjectImportOptions
......
...@@ -4,6 +4,8 @@ module Gitlab ...@@ -4,6 +4,8 @@ module Gitlab
class ImportTasksWorker < BaseWorker # rubocop:disable Scalability/IdempotentWorker class ImportTasksWorker < BaseWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ProjectImportOptions # This marks the project as failed after too many tries include ProjectImportOptions # This marks the project as failed after too many tries
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class GitlabPerformanceBarStatsWorker class GitlabPerformanceBarStatsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
LEASE_KEY = 'gitlab:performance_bar_stats' LEASE_KEY = 'gitlab:performance_bar_stats'
......
...@@ -5,6 +5,8 @@ class GitlabServicePingWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -5,6 +5,8 @@ class GitlabServicePingWorker # rubocop:disable Scalability/IdempotentWorker
LEASE_TIMEOUT = 86400 LEASE_TIMEOUT = 86400
include ApplicationWorker include ApplicationWorker
data_consistency :always
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
include Gitlab::ExclusiveLeaseHelpers include Gitlab::ExclusiveLeaseHelpers
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class GitlabShellWorker # rubocop:disable Scalability/IdempotentWorker class GitlabShellWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include Gitlab::ShellAdapter include Gitlab::ShellAdapter
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class GroupDestroyWorker # rubocop:disable Scalability/IdempotentWorker class GroupDestroyWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ExceptionBacktrace include ExceptionBacktrace
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class GroupExportWorker # rubocop:disable Scalability/IdempotentWorker class GroupExportWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include ExceptionBacktrace include ExceptionBacktrace
feature_category :importers feature_category :importers
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class GroupImportWorker # rubocop:disable Scalability/IdempotentWorker class GroupImportWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: false, dead: false sidekiq_options retry: false, dead: false
feature_category :importers feature_category :importers
......
...@@ -4,6 +4,8 @@ module HashedStorage ...@@ -4,6 +4,8 @@ module HashedStorage
class MigratorWorker # rubocop:disable Scalability/IdempotentWorker class MigratorWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :hashed_storage queue_namespace :hashed_storage
......
...@@ -4,6 +4,8 @@ module HashedStorage ...@@ -4,6 +4,8 @@ module HashedStorage
class ProjectMigrateWorker < BaseWorker # rubocop:disable Scalability/IdempotentWorker class ProjectMigrateWorker < BaseWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :hashed_storage queue_namespace :hashed_storage
......
...@@ -4,6 +4,8 @@ module HashedStorage ...@@ -4,6 +4,8 @@ module HashedStorage
class ProjectRollbackWorker < BaseWorker # rubocop:disable Scalability/IdempotentWorker class ProjectRollbackWorker < BaseWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :hashed_storage queue_namespace :hashed_storage
......
...@@ -4,6 +4,8 @@ module HashedStorage ...@@ -4,6 +4,8 @@ module HashedStorage
class RollbackerWorker # rubocop:disable Scalability/IdempotentWorker class RollbackerWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :hashed_storage queue_namespace :hashed_storage
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ImportExportProjectCleanupWorker # rubocop:disable Scalability/IdempotentWorker class ImportExportProjectCleanupWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ImportIssuesCsvWorker # rubocop:disable Scalability/IdempotentWorker class ImportIssuesCsvWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
idempotent! idempotent!
......
...@@ -4,6 +4,8 @@ module IncidentManagement ...@@ -4,6 +4,8 @@ module IncidentManagement
class AddSeveritySystemNoteWorker # rubocop:disable Scalability/IdempotentWorker class AddSeveritySystemNoteWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :incident_management queue_namespace :incident_management
......
...@@ -5,6 +5,8 @@ module IncidentManagement ...@@ -5,6 +5,8 @@ module IncidentManagement
class ProcessIncidentWorker # rubocop:disable Scalability/IdempotentWorker class ProcessIncidentWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :incident_management queue_namespace :incident_management
......
...@@ -4,6 +4,8 @@ module IncidentManagement ...@@ -4,6 +4,8 @@ module IncidentManagement
class ProcessAlertWorkerV2 # rubocop:disable Scalability/IdempotentWorker class ProcessAlertWorkerV2 # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
queue_namespace :incident_management queue_namespace :incident_management
feature_category :incident_management feature_category :incident_management
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class InvalidGpgSignatureUpdateWorker # rubocop:disable Scalability/IdempotentWorker class InvalidGpgSignatureUpdateWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :source_code_management feature_category :source_code_management
......
...@@ -6,6 +6,8 @@ require 'socket' ...@@ -6,6 +6,8 @@ require 'socket'
class IrkerWorker # rubocop:disable Scalability/IdempotentWorker class IrkerWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :integrations feature_category :integrations
......
...@@ -4,6 +4,8 @@ module Issuable ...@@ -4,6 +4,8 @@ module Issuable
class LabelLinksDestroyWorker class LabelLinksDestroyWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
idempotent! idempotent!
feature_category :issue_tracking feature_category :issue_tracking
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class IssuableExportCsvWorker # rubocop:disable Scalability/IdempotentWorker class IssuableExportCsvWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :issue_tracking feature_category :issue_tracking
......
...@@ -4,6 +4,8 @@ module Issuables ...@@ -4,6 +4,8 @@ module Issuables
class ClearGroupsIssueCounterWorker class ClearGroupsIssueCounterWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
idempotent! idempotent!
urgency :low urgency :low
feature_category :issue_tracking feature_category :issue_tracking
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class IssueDueSchedulerWorker # rubocop:disable Scalability/IdempotentWorker class IssueDueSchedulerWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class IssuePlacementWorker class IssuePlacementWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
idempotent! idempotent!
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class IssueRebalancingWorker class IssueRebalancingWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
idempotent! idempotent!
......
...@@ -4,6 +4,8 @@ module JiraConnect ...@@ -4,6 +4,8 @@ module JiraConnect
class ForwardEventWorker # rubocop:disable Scalability/IdempotentWorker class ForwardEventWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
queue_namespace :jira_connect queue_namespace :jira_connect
feature_category :integrations feature_category :integrations
worker_has_external_dependencies! worker_has_external_dependencies!
......
...@@ -4,6 +4,8 @@ module MailScheduler ...@@ -4,6 +4,8 @@ module MailScheduler
class IssueDueWorker # rubocop:disable Scalability/IdempotentWorker class IssueDueWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include MailSchedulerQueue include MailSchedulerQueue
......
...@@ -6,6 +6,8 @@ module MailScheduler ...@@ -6,6 +6,8 @@ module MailScheduler
class NotificationServiceWorker # rubocop:disable Scalability/IdempotentWorker class NotificationServiceWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include MailSchedulerQueue include MailSchedulerQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class MemberInvitationReminderEmailsWorker # rubocop:disable Scalability/IdempotentWorker class MemberInvitationReminderEmailsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -4,6 +4,8 @@ module MembersDestroyer ...@@ -4,6 +4,8 @@ module MembersDestroyer
class UnassignIssuablesWorker class UnassignIssuablesWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
ENTITY_TYPES = %w(Group Project).freeze ENTITY_TYPES = %w(Group Project).freeze
......
...@@ -5,6 +5,8 @@ class MergeRequestCleanupRefsWorker ...@@ -5,6 +5,8 @@ class MergeRequestCleanupRefsWorker
include LimitedCapacity::Worker include LimitedCapacity::Worker
include Gitlab::Utils::StrongMemoize include Gitlab::Utils::StrongMemoize
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :code_review feature_category :code_review
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class MergeRequestMergeabilityCheckWorker class MergeRequestMergeabilityCheckWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :code_review feature_category :code_review
......
...@@ -4,6 +4,8 @@ module MergeRequests ...@@ -4,6 +4,8 @@ module MergeRequests
class CreatePipelineWorker class CreatePipelineWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class MergeRequests::DeleteSourceBranchWorker class MergeRequests::DeleteSourceBranchWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :source_code_management feature_category :source_code_management
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class MergeRequests::HandleAssigneesChangeWorker class MergeRequests::HandleAssigneesChangeWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :code_review feature_category :code_review
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class MergeRequests::ResolveTodosWorker class MergeRequests::ResolveTodosWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :code_review feature_category :code_review
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class MergeWorker # rubocop:disable Scalability/IdempotentWorker class MergeWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :source_code_management feature_category :source_code_management
......
...@@ -5,6 +5,8 @@ module Metrics ...@@ -5,6 +5,8 @@ module Metrics
class PruneOldAnnotationsWorker class PruneOldAnnotationsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
DELETE_LIMIT = 10_000 DELETE_LIMIT = 10_000
......
...@@ -5,6 +5,8 @@ module Metrics ...@@ -5,6 +5,8 @@ module Metrics
class ScheduleAnnotationsPruneWorker class ScheduleAnnotationsPruneWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -5,6 +5,8 @@ module Metrics ...@@ -5,6 +5,8 @@ module Metrics
class SyncDashboardsWorker class SyncDashboardsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :metrics feature_category :metrics
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class MigrateExternalDiffsWorker # rubocop:disable Scalability/IdempotentWorker class MigrateExternalDiffsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :code_review feature_category :code_review
......
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
class NamespacelessProjectDestroyWorker # rubocop:disable Scalability/IdempotentWorker class NamespacelessProjectDestroyWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ExceptionBacktrace include ExceptionBacktrace
......
...@@ -4,6 +4,8 @@ module Namespaces ...@@ -4,6 +4,8 @@ module Namespaces
class InProductMarketingEmailsWorker # rubocop:disable Scalability/IdempotentWorker class InProductMarketingEmailsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -4,6 +4,8 @@ module Namespaces ...@@ -4,6 +4,8 @@ module Namespaces
class OnboardingIssueCreatedWorker class OnboardingIssueCreatedWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :issue_tracking feature_category :issue_tracking
......
...@@ -4,6 +4,8 @@ module Namespaces ...@@ -4,6 +4,8 @@ module Namespaces
class OnboardingPipelineCreatedWorker class OnboardingPipelineCreatedWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :subgroups feature_category :subgroups
......
...@@ -4,6 +4,8 @@ module Namespaces ...@@ -4,6 +4,8 @@ module Namespaces
class OnboardingProgressWorker class OnboardingProgressWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :product_analytics feature_category :product_analytics
......
...@@ -4,6 +4,8 @@ module Namespaces ...@@ -4,6 +4,8 @@ module Namespaces
class OnboardingUserAddedWorker class OnboardingUserAddedWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :users feature_category :users
......
...@@ -4,6 +4,8 @@ module Namespaces ...@@ -4,6 +4,8 @@ module Namespaces
class PruneAggregationSchedulesWorker # rubocop:disable Scalability/IdempotentWorker class PruneAggregationSchedulesWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -4,6 +4,8 @@ module Namespaces ...@@ -4,6 +4,8 @@ module Namespaces
class RootStatisticsWorker class RootStatisticsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :update_namespace_statistics queue_namespace :update_namespace_statistics
......
...@@ -4,6 +4,8 @@ module Namespaces ...@@ -4,6 +4,8 @@ module Namespaces
class ScheduleAggregationWorker class ScheduleAggregationWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :update_namespace_statistics queue_namespace :update_namespace_statistics
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class NewIssueWorker # rubocop:disable Scalability/IdempotentWorker class NewIssueWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include NewIssuable include NewIssuable
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class NewMergeRequestWorker # rubocop:disable Scalability/IdempotentWorker class NewMergeRequestWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include NewIssuable include NewIssuable
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class NewNoteWorker # rubocop:disable Scalability/IdempotentWorker class NewNoteWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :issue_tracking feature_category :issue_tracking
......
...@@ -4,6 +4,8 @@ module ObjectPool ...@@ -4,6 +4,8 @@ module ObjectPool
class CreateWorker # rubocop:disable Scalability/IdempotentWorker class CreateWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ObjectPoolQueue include ObjectPoolQueue
include ExclusiveLeaseGuard include ExclusiveLeaseGuard
......
...@@ -4,6 +4,8 @@ module ObjectPool ...@@ -4,6 +4,8 @@ module ObjectPool
class DestroyWorker # rubocop:disable Scalability/IdempotentWorker class DestroyWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ObjectPoolQueue include ObjectPoolQueue
......
...@@ -4,6 +4,8 @@ module ObjectPool ...@@ -4,6 +4,8 @@ module ObjectPool
class JoinWorker # rubocop:disable Scalability/IdempotentWorker class JoinWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ObjectPoolQueue include ObjectPoolQueue
......
...@@ -4,6 +4,8 @@ module ObjectPool ...@@ -4,6 +4,8 @@ module ObjectPool
class ScheduleJoinWorker # rubocop:disable Scalability/IdempotentWorker class ScheduleJoinWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ObjectPoolQueue include ObjectPoolQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module ObjectStorage module ObjectStorage
class BackgroundMoveWorker # rubocop:disable Scalability/IdempotentWorker class BackgroundMoveWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include ObjectStorageQueue include ObjectStorageQueue
sidekiq_options retry: 5 sidekiq_options retry: 5
......
...@@ -5,6 +5,8 @@ module ObjectStorage ...@@ -5,6 +5,8 @@ module ObjectStorage
class MigrateUploadsWorker class MigrateUploadsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ObjectStorageQueue include ObjectStorageQueue
......
...@@ -5,6 +5,8 @@ module Packages ...@@ -5,6 +5,8 @@ module Packages
class CacheCleanupWorker class CacheCleanupWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -5,6 +5,8 @@ module Packages ...@@ -5,6 +5,8 @@ module Packages
class CacheUpdateWorker class CacheUpdateWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :package_registry feature_category :package_registry
......
...@@ -4,6 +4,8 @@ module Packages ...@@ -4,6 +4,8 @@ module Packages
module Debian module Debian
class GenerateDistributionWorker # rubocop:disable Scalability/IdempotentWorker class GenerateDistributionWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include Gitlab::Utils::StrongMemoize include Gitlab::Utils::StrongMemoize
# The worker is idempotent, by reusing component files with the same file_sha256. # The worker is idempotent, by reusing component files with the same file_sha256.
......
...@@ -4,6 +4,8 @@ module Packages ...@@ -4,6 +4,8 @@ module Packages
module Debian module Debian
class ProcessChangesWorker class ProcessChangesWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include Gitlab::Utils::StrongMemoize include Gitlab::Utils::StrongMemoize
deduplicate :until_executed deduplicate :until_executed
......
...@@ -5,6 +5,8 @@ module Packages ...@@ -5,6 +5,8 @@ module Packages
class SyncPackagesWorker class SyncPackagesWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include Gitlab::Golang include Gitlab::Golang
......
...@@ -5,6 +5,8 @@ module Packages ...@@ -5,6 +5,8 @@ module Packages
class ExtractionWorker class ExtractionWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
queue_namespace :package_repositories queue_namespace :package_repositories
feature_category :package_registry feature_category :package_registry
deduplicate :until_executing deduplicate :until_executing
......
...@@ -6,6 +6,8 @@ module Packages ...@@ -6,6 +6,8 @@ module Packages
class SyncWorker class SyncWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include Gitlab::Utils::StrongMemoize include Gitlab::Utils::StrongMemoize
......
...@@ -5,6 +5,8 @@ module Packages ...@@ -5,6 +5,8 @@ module Packages
class ExtractionWorker # rubocop:disable Scalability/IdempotentWorker class ExtractionWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :package_repositories queue_namespace :package_repositories
......
...@@ -5,6 +5,8 @@ module Packages ...@@ -5,6 +5,8 @@ module Packages
class ExtractionWorker # rubocop:disable Scalability/IdempotentWorker class ExtractionWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :package_repositories queue_namespace :package_repositories
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PagesDomainRemovalCronWorker # rubocop:disable Scalability/IdempotentWorker class PagesDomainRemovalCronWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue include CronjobQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PagesDomainSslRenewalCronWorker # rubocop:disable Scalability/IdempotentWorker class PagesDomainSslRenewalCronWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue include CronjobQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PagesDomainSslRenewalWorker # rubocop:disable Scalability/IdempotentWorker class PagesDomainSslRenewalWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :pages feature_category :pages
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PagesDomainVerificationCronWorker # rubocop:disable Scalability/IdempotentWorker class PagesDomainVerificationCronWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue include CronjobQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PagesDomainVerificationWorker # rubocop:disable Scalability/IdempotentWorker class PagesDomainVerificationWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :pages feature_category :pages
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
class PagesRemoveWorker # rubocop:disable Scalability/IdempotentWorker class PagesRemoveWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :pages feature_category :pages
tags :exclude_from_kubernetes tags :exclude_from_kubernetes
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PagesTransferWorker # rubocop:disable Scalability/IdempotentWorker class PagesTransferWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
TransferFailedError = Class.new(StandardError) TransferFailedError = Class.new(StandardError)
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PagesUpdateConfigurationWorker class PagesUpdateConfigurationWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
idempotent! idempotent!
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PagesWorker # rubocop:disable Scalability/IdempotentWorker class PagesWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :pages feature_category :pages
loggable_arguments 0, 1 loggable_arguments 0, 1
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PartitionCreationWorker class PartitionCreationWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -4,6 +4,8 @@ module PersonalAccessTokens ...@@ -4,6 +4,8 @@ module PersonalAccessTokens
class ExpiredNotificationWorker # rubocop:disable Scalability/IdempotentWorker class ExpiredNotificationWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue include CronjobQueue
......
...@@ -4,6 +4,8 @@ module PersonalAccessTokens ...@@ -4,6 +4,8 @@ module PersonalAccessTokens
class ExpiringWorker # rubocop:disable Scalability/IdempotentWorker class ExpiringWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue include CronjobQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PipelineMetricsWorker # rubocop:disable Scalability/IdempotentWorker class PipelineMetricsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PipelineNotificationWorker # rubocop:disable Scalability/IdempotentWorker class PipelineNotificationWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PipelineProcessWorker class PipelineProcessWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PipelineScheduleWorker # rubocop:disable Scalability/IdempotentWorker class PipelineScheduleWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue include CronjobQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PostReceive # rubocop:disable Scalability/IdempotentWorker class PostReceive # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include Gitlab::Experiment::Dsl include Gitlab::Experiment::Dsl
......
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
class ProcessCommitWorker class ProcessCommitWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :source_code_management feature_category :source_code_management
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
class ProjectCacheWorker class ProjectCacheWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
LEASE_TIMEOUT = 15.minutes.to_i LEASE_TIMEOUT = 15.minutes.to_i
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
class ProjectDailyStatisticsWorker # rubocop:disable Scalability/IdempotentWorker class ProjectDailyStatisticsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :source_code_management feature_category :source_code_management
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ProjectDestroyWorker # rubocop:disable Scalability/IdempotentWorker class ProjectDestroyWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ExceptionBacktrace include ExceptionBacktrace
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class ProjectExportWorker # rubocop:disable Scalability/IdempotentWorker class ProjectExportWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include ExceptionBacktrace include ExceptionBacktrace
feature_category :importers feature_category :importers
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ProjectServiceWorker # rubocop:disable Scalability/IdempotentWorker class ProjectServiceWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
sidekiq_options dead: false sidekiq_options dead: false
......
...@@ -4,6 +4,8 @@ module Projects ...@@ -4,6 +4,8 @@ module Projects
class PostCreationWorker class PostCreationWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :source_code_management feature_category :source_code_management
......
...@@ -4,6 +4,8 @@ module Projects ...@@ -4,6 +4,8 @@ module Projects
class ScheduleBulkRepositoryShardMovesWorker class ScheduleBulkRepositoryShardMovesWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
idempotent! idempotent!
......
...@@ -4,6 +4,8 @@ module Prometheus ...@@ -4,6 +4,8 @@ module Prometheus
class CreateDefaultAlertsWorker class CreateDefaultAlertsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :incident_management feature_category :incident_management
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PropagateIntegrationGroupWorker class PropagateIntegrationGroupWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :integrations feature_category :integrations
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PropagateIntegrationInheritDescendantWorker class PropagateIntegrationInheritDescendantWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :integrations feature_category :integrations
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PropagateIntegrationInheritWorker class PropagateIntegrationInheritWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :integrations feature_category :integrations
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PropagateIntegrationProjectWorker class PropagateIntegrationProjectWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :integrations feature_category :integrations
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PropagateIntegrationWorker class PropagateIntegrationWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :integrations feature_category :integrations
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
class PropagateServiceTemplateWorker # rubocop:disable Scalability/IdempotentWorker class PropagateServiceTemplateWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :integrations feature_category :integrations
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PruneOldEventsWorker # rubocop:disable Scalability/IdempotentWorker class PruneOldEventsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PurgeDependencyProxyCacheWorker class PurgeDependencyProxyCacheWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include Gitlab::Allowable include Gitlab::Allowable
idempotent! idempotent!
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
class RebaseWorker # rubocop:disable Scalability/IdempotentWorker class RebaseWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :source_code_management feature_category :source_code_management
......
...@@ -4,6 +4,8 @@ module Releases ...@@ -4,6 +4,8 @@ module Releases
class CreateEvidenceWorker # rubocop:disable Scalability/IdempotentWorker class CreateEvidenceWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :release_evidence feature_category :release_evidence
......
...@@ -4,6 +4,8 @@ module Releases ...@@ -4,6 +4,8 @@ module Releases
class ManageEvidenceWorker # rubocop:disable Scalability/IdempotentWorker class ManageEvidenceWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class RemoteMirrorNotificationWorker # rubocop:disable Scalability/IdempotentWorker class RemoteMirrorNotificationWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :source_code_management feature_category :source_code_management
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class RemoveExpiredGroupLinksWorker # rubocop:disable Scalability/IdempotentWorker class RemoveExpiredGroupLinksWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class RemoveExpiredMembersWorker # rubocop:disable Scalability/IdempotentWorker class RemoveExpiredMembersWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue include CronjobQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class RemoveUnacceptedMemberInvitesWorker # rubocop:disable Scalability/IdempotentWorker class RemoveUnacceptedMemberInvitesWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class RemoveUnreferencedLfsObjectsWorker class RemoveUnreferencedLfsObjectsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class RepositoryArchiveCacheWorker # rubocop:disable Scalability/IdempotentWorker class RepositoryArchiveCacheWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -4,6 +4,8 @@ module RepositoryCheck ...@@ -4,6 +4,8 @@ module RepositoryCheck
class BatchWorker # rubocop:disable Scalability/IdempotentWorker class BatchWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include RepositoryCheckQueue include RepositoryCheckQueue
include ExclusiveLeaseGuard include ExclusiveLeaseGuard
......
...@@ -4,6 +4,8 @@ module RepositoryCheck ...@@ -4,6 +4,8 @@ module RepositoryCheck
class ClearWorker # rubocop:disable Scalability/IdempotentWorker class ClearWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include RepositoryCheckQueue include RepositoryCheckQueue
......
...@@ -4,6 +4,8 @@ module RepositoryCheck ...@@ -4,6 +4,8 @@ module RepositoryCheck
class DispatchWorker # rubocop:disable Scalability/IdempotentWorker class DispatchWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -4,6 +4,8 @@ module RepositoryCheck ...@@ -4,6 +4,8 @@ module RepositoryCheck
class SingleRepositoryWorker # rubocop:disable Scalability/IdempotentWorker class SingleRepositoryWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include RepositoryCheckQueue include RepositoryCheckQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class RepositoryCleanupWorker # rubocop:disable Scalability/IdempotentWorker class RepositoryCleanupWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :source_code_management feature_category :source_code_management
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class RepositoryForkWorker # rubocop:disable Scalability/IdempotentWorker class RepositoryForkWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ProjectStartImport include ProjectStartImport
include ProjectImportOptions include ProjectImportOptions
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class RepositoryImportWorker # rubocop:disable Scalability/IdempotentWorker class RepositoryImportWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include ExceptionBacktrace include ExceptionBacktrace
include ProjectStartImport include ProjectStartImport
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class RepositoryRemoveRemoteWorker # rubocop:disable Scalability/IdempotentWorker class RepositoryRemoveRemoteWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ExclusiveLeaseGuard include ExclusiveLeaseGuard
......
...@@ -4,6 +4,8 @@ class RepositoryUpdateRemoteMirrorWorker ...@@ -4,6 +4,8 @@ class RepositoryUpdateRemoteMirrorWorker
UpdateError = Class.new(StandardError) UpdateError = Class.new(StandardError)
include ApplicationWorker include ApplicationWorker
data_consistency :always
include Gitlab::ExclusiveLeaseHelpers include Gitlab::ExclusiveLeaseHelpers
worker_has_external_dependencies! worker_has_external_dependencies!
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class RequestsProfilesWorker # rubocop:disable Scalability/IdempotentWorker class RequestsProfilesWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class RunPipelineScheduleWorker # rubocop:disable Scalability/IdempotentWorker class RunPipelineScheduleWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ScheduleMergeRequestCleanupRefsWorker class ScheduleMergeRequestCleanupRefsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ScheduleMigrateExternalDiffsWorker # rubocop:disable Scalability/IdempotentWorker class ScheduleMigrateExternalDiffsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext: # rubocop:disable Scalability/CronWorkerContext:
# This schedules the `MigrateExternalDiffsWorker` # This schedules the `MigrateExternalDiffsWorker`
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class SelfMonitoringProjectCreateWorker # rubocop:disable Scalability/IdempotentWorker class SelfMonitoringProjectCreateWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ExclusiveLeaseGuard include ExclusiveLeaseGuard
include SelfMonitoringProjectWorker include SelfMonitoringProjectWorker
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class SelfMonitoringProjectDeleteWorker # rubocop:disable Scalability/IdempotentWorker class SelfMonitoringProjectDeleteWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ExclusiveLeaseGuard include ExclusiveLeaseGuard
include SelfMonitoringProjectWorker include SelfMonitoringProjectWorker
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ServiceDeskEmailReceiverWorker < EmailReceiverWorker # rubocop:disable Scalability/IdempotentWorker class ServiceDeskEmailReceiverWorker < EmailReceiverWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
feature_category :service_desk feature_category :service_desk
sidekiq_options retry: 3 sidekiq_options retry: 3
......
...@@ -4,6 +4,8 @@ module Snippets ...@@ -4,6 +4,8 @@ module Snippets
class ScheduleBulkRepositoryShardMovesWorker class ScheduleBulkRepositoryShardMovesWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
idempotent! idempotent!
......
...@@ -4,6 +4,8 @@ module SshKeys ...@@ -4,6 +4,8 @@ module SshKeys
class ExpiredNotificationWorker class ExpiredNotificationWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue include CronjobQueue
......
...@@ -4,6 +4,8 @@ module SshKeys ...@@ -4,6 +4,8 @@ module SshKeys
class ExpiringSoonNotificationWorker class ExpiringSoonNotificationWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue include CronjobQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class StageUpdateWorker class StageUpdateWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class StuckCiJobsWorker # rubocop:disable Scalability/IdempotentWorker class StuckCiJobsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue include CronjobQueue
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
class StuckExportJobsWorker class StuckExportJobsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker updates export states inline and does not schedule # This worker updates export states inline and does not schedule
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class StuckMergeJobsWorker # rubocop:disable Scalability/IdempotentWorker class StuckMergeJobsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class SystemHookPushWorker # rubocop:disable Scalability/IdempotentWorker class SystemHookPushWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :source_code_management feature_category :source_code_management
......
...@@ -4,6 +4,8 @@ module TodosDestroyer ...@@ -4,6 +4,8 @@ module TodosDestroyer
class ConfidentialIssueWorker # rubocop:disable Scalability/IdempotentWorker class ConfidentialIssueWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include TodosDestroyerQueue include TodosDestroyerQueue
......
...@@ -4,6 +4,8 @@ module TodosDestroyer ...@@ -4,6 +4,8 @@ module TodosDestroyer
class DestroyedIssuableWorker class DestroyedIssuableWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include TodosDestroyerQueue include TodosDestroyerQueue
......
...@@ -4,6 +4,8 @@ module TodosDestroyer ...@@ -4,6 +4,8 @@ module TodosDestroyer
class EntityLeaveWorker # rubocop:disable Scalability/IdempotentWorker class EntityLeaveWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include TodosDestroyerQueue include TodosDestroyerQueue
......
...@@ -4,6 +4,8 @@ module TodosDestroyer ...@@ -4,6 +4,8 @@ module TodosDestroyer
class GroupPrivateWorker # rubocop:disable Scalability/IdempotentWorker class GroupPrivateWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include TodosDestroyerQueue include TodosDestroyerQueue
......
...@@ -4,6 +4,8 @@ module TodosDestroyer ...@@ -4,6 +4,8 @@ module TodosDestroyer
class PrivateFeaturesWorker # rubocop:disable Scalability/IdempotentWorker class PrivateFeaturesWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include TodosDestroyerQueue include TodosDestroyerQueue
......
...@@ -4,6 +4,8 @@ module TodosDestroyer ...@@ -4,6 +4,8 @@ module TodosDestroyer
class ProjectPrivateWorker # rubocop:disable Scalability/IdempotentWorker class ProjectPrivateWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include TodosDestroyerQueue include TodosDestroyerQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class TrendingProjectsWorker # rubocop:disable Scalability/IdempotentWorker class TrendingProjectsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class UpdateContainerRegistryInfoWorker class UpdateContainerRegistryInfoWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class UpdateExternalPullRequestsWorker # rubocop:disable Scalability/IdempotentWorker class UpdateExternalPullRequestsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :source_code_management feature_category :source_code_management
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class UpdateHeadPipelineForMergeRequestWorker class UpdateHeadPipelineForMergeRequestWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class UpdateHighestRoleWorker class UpdateHighestRoleWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :utilization feature_category :utilization
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class UpdateMergeRequestsWorker # rubocop:disable Scalability/IdempotentWorker class UpdateMergeRequestsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :code_review feature_category :code_review
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
class UpdateProjectStatisticsWorker # rubocop:disable Scalability/IdempotentWorker class UpdateProjectStatisticsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :source_code_management feature_category :source_code_management
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class UploadChecksumWorker # rubocop:disable Scalability/IdempotentWorker class UploadChecksumWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :geo_replication feature_category :geo_replication
......
...@@ -5,6 +5,8 @@ module UserStatusCleanup ...@@ -5,6 +5,8 @@ module UserStatusCleanup
class BatchWorker class BatchWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
include CronjobQueue include CronjobQueue
......
...@@ -4,6 +4,8 @@ module Users ...@@ -4,6 +4,8 @@ module Users
class CreateStatisticsWorker # rubocop:disable Scalability/IdempotentWorker class CreateStatisticsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -4,6 +4,8 @@ module Users ...@@ -4,6 +4,8 @@ module Users
class DeactivateDormantUsersWorker # rubocop:disable Scalability/IdempotentWorker class DeactivateDormantUsersWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include CronjobQueue include CronjobQueue
feature_category :utilization feature_category :utilization
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class WaitForClusterCreationWorker # rubocop:disable Scalability/IdempotentWorker class WaitForClusterCreationWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
......
...@@ -4,6 +4,8 @@ module WebHooks ...@@ -4,6 +4,8 @@ module WebHooks
class DestroyWorker class DestroyWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :integrations feature_category :integrations
......
...@@ -4,6 +4,8 @@ module WebHooks ...@@ -4,6 +4,8 @@ module WebHooks
class LogExecutionWorker class LogExecutionWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
idempotent! idempotent!
feature_category :integrations feature_category :integrations
urgency :low urgency :low
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class X509CertificateRevokeWorker class X509CertificateRevokeWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :source_code_management feature_category :source_code_management
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class X509IssuerCrlCheckWorker class X509IssuerCrlCheckWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue include CronjobQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ActiveUserCountThresholdWorker # rubocop:disable Scalability/IdempotentWorker class ActiveUserCountThresholdWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class AdjournedGroupDeletionWorker # rubocop:disable Scalability/IdempotentWorker class AdjournedGroupDeletionWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue include CronjobQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class AdjournedProjectDeletionWorker # rubocop:disable Scalability/IdempotentWorker class AdjournedProjectDeletionWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ExceptionBacktrace include ExceptionBacktrace
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class AdjournedProjectsDeletionCronWorker # rubocop:disable Scalability/IdempotentWorker class AdjournedProjectsDeletionCronWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue include CronjobQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class AdminEmailsWorker # rubocop:disable Scalability/IdempotentWorker class AdminEmailsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :issue_tracking feature_category :issue_tracking
......
...@@ -4,6 +4,8 @@ module Analytics ...@@ -4,6 +4,8 @@ module Analytics
class CodeReviewMetricsWorker class CodeReviewMetricsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :code_analytics feature_category :code_analytics
......
...@@ -6,6 +6,8 @@ module Analytics ...@@ -6,6 +6,8 @@ module Analytics
class CreateAllSnapshotsWorker class CreateAllSnapshotsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -6,6 +6,8 @@ module Analytics ...@@ -6,6 +6,8 @@ module Analytics
class CreateSnapshotWorker class CreateSnapshotWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :devops_reports feature_category :devops_reports
......
...@@ -4,6 +4,8 @@ module ApprovalRules ...@@ -4,6 +4,8 @@ module ApprovalRules
class ExternalApprovalRulePayloadWorker class ExternalApprovalRulePayloadWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
idempotent! idempotent!
......
...@@ -4,6 +4,8 @@ module Ci ...@@ -4,6 +4,8 @@ module Ci
class BatchResetMinutesWorker class BatchResetMinutesWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 10 sidekiq_options retry: 10
feature_category :continuous_integration feature_category :continuous_integration
idempotent! idempotent!
......
...@@ -5,6 +5,8 @@ module Ci ...@@ -5,6 +5,8 @@ module Ci
class SyncReportsToReportApprovalRulesWorker # rubocop:disable Scalability/IdempotentWorker class SyncReportsToReportApprovalRulesWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include PipelineBackgroundQueue include PipelineBackgroundQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ClearSharedRunnersMinutesWorker # rubocop:disable Scalability/IdempotentWorker class ClearSharedRunnersMinutesWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class CreateGithubWebhookWorker # rubocop:disable Scalability/IdempotentWorker class CreateGithubWebhookWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GrapePathHelpers::NamedRouteMatcher include GrapePathHelpers::NamedRouteMatcher
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class DastSiteValidationWorker class DastSiteValidationWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
idempotent! idempotent!
sidekiq_options retry: 3, dead: false sidekiq_options retry: 3, dead: false
......
...@@ -4,6 +4,8 @@ module Deployments ...@@ -4,6 +4,8 @@ module Deployments
class AutoRollbackWorker class AutoRollbackWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
idempotent! idempotent!
......
...@@ -5,6 +5,8 @@ module Dora ...@@ -5,6 +5,8 @@ module Dora
class RefreshWorker class RefreshWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
deduplicate :until_executing deduplicate :until_executing
......
...@@ -4,6 +4,8 @@ module Elastic ...@@ -4,6 +4,8 @@ module Elastic
class MigrationWorker class MigrationWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include Gitlab::ExclusiveLeaseHelpers include Gitlab::ExclusiveLeaseHelpers
# There is no onward scheduling and this cron handles work from across the # There is no onward scheduling and this cron handles work from across the
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ElasticAssociationIndexerWorker # rubocop:disable Scalability/IdempotentWorker class ElasticAssociationIndexerWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :global_search feature_category :global_search
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class ElasticClusterReindexingCronWorker class ElasticClusterReindexingCronWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
include Gitlab::ExclusiveLeaseHelpers include Gitlab::ExclusiveLeaseHelpers
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class ElasticCommitIndexerWorker class ElasticCommitIndexerWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
prepend Elastic::IndexingControl prepend Elastic::IndexingControl
include Gitlab::ExclusiveLeaseHelpers include Gitlab::ExclusiveLeaseHelpers
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class ElasticDeleteProjectWorker class ElasticDeleteProjectWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include Elasticsearch::Model::Client::ClassMethods include Elasticsearch::Model::Client::ClassMethods
prepend Elastic::IndexingControl prepend Elastic::IndexingControl
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
class ElasticFullIndexWorker # rubocop:disable Scalability/IdempotentWorker class ElasticFullIndexWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 2 sidekiq_options retry: 2
feature_category :global_search feature_category :global_search
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ElasticIndexingControlWorker class ElasticIndexingControlWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :global_search feature_category :global_search
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ElasticNamespaceIndexerWorker # rubocop:disable Scalability/IdempotentWorker class ElasticNamespaceIndexerWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
feature_category :global_search feature_category :global_search
sidekiq_options retry: 2 sidekiq_options retry: 2
loggable_arguments 1 loggable_arguments 1
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ElasticNamespaceRolloutWorker # rubocop:disable Scalability/IdempotentWorker class ElasticNamespaceRolloutWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
feature_category :global_search feature_category :global_search
sidekiq_options retry: 2 sidekiq_options retry: 2
loggable_arguments 0, 2 loggable_arguments 0, 2
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ElasticRemoveExpiredNamespaceSubscriptionsFromIndexCronWorker class ElasticRemoveExpiredNamespaceSubscriptionsFromIndexCronWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include Gitlab::ExclusiveLeaseHelpers include Gitlab::ExclusiveLeaseHelpers
include CronjobQueue include CronjobQueue
......
...@@ -4,6 +4,8 @@ module Epics ...@@ -4,6 +4,8 @@ module Epics
class NewEpicIssueWorker # rubocop:disable Scalability/IdempotentWorker class NewEpicIssueWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
feature_category :epics feature_category :epics
def perform(params) def perform(params)
......
...@@ -4,6 +4,8 @@ module Epics ...@@ -4,6 +4,8 @@ module Epics
class UpdateEpicsDatesWorker # rubocop:disable Scalability/IdempotentWorker class UpdateEpicsDatesWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :epics queue_namespace :epics
......
...@@ -9,6 +9,8 @@ module Geo ...@@ -9,6 +9,8 @@ module Geo
class ProjectRegistrySchedulerWorker # rubocop:disable Scalability/IdempotentWorker class ProjectRegistrySchedulerWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GeoQueue include GeoQueue
include ExclusiveLeaseGuard include ExclusiveLeaseGuard
......
...@@ -9,6 +9,8 @@ module Geo ...@@ -9,6 +9,8 @@ module Geo
class ProjectRegistryWorker # rubocop:disable Scalability/IdempotentWorker class ProjectRegistryWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GeoQueue include GeoQueue
include ::Gitlab::Geo::LogHelpers include ::Gitlab::Geo::LogHelpers
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Geo module Geo
class ContainerRepositorySyncWorker # rubocop:disable Scalability/IdempotentWorker class ContainerRepositorySyncWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include GeoQueue include GeoQueue
include Gitlab::Geo::LogHelpers include Gitlab::Geo::LogHelpers
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Geo module Geo
class DesignRepositorySyncWorker # rubocop:disable Scalability/IdempotentWorker class DesignRepositorySyncWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include GeoQueue include GeoQueue
include Gitlab::Geo::LogHelpers include Gitlab::Geo::LogHelpers
......
...@@ -4,6 +4,8 @@ module Geo ...@@ -4,6 +4,8 @@ module Geo
class DestroyWorker class DestroyWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GeoQueue include GeoQueue
include ::Gitlab::Geo::LogHelpers include ::Gitlab::Geo::LogHelpers
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Geo module Geo
class EventWorker # rubocop:disable Scalability/IdempotentWorker class EventWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include GeoQueue include GeoQueue
include ::Gitlab::Geo::LogHelpers include ::Gitlab::Geo::LogHelpers
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Geo module Geo
class FileDownloadWorker # rubocop:disable Scalability/IdempotentWorker class FileDownloadWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include GeoQueue include GeoQueue
sidekiq_options retry: 3, dead: false sidekiq_options retry: 3, dead: false
......
...@@ -4,6 +4,8 @@ module Geo ...@@ -4,6 +4,8 @@ module Geo
class FileRegistryRemovalWorker # rubocop:disable Scalability/IdempotentWorker class FileRegistryRemovalWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GeoQueue include GeoQueue
include ::Gitlab::Geo::LogHelpers include ::Gitlab::Geo::LogHelpers
......
...@@ -4,6 +4,8 @@ module Geo ...@@ -4,6 +4,8 @@ module Geo
class FileRemovalWorker # rubocop:disable Scalability/IdempotentWorker class FileRemovalWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include Gitlab::Geo::LogHelpers include Gitlab::Geo::LogHelpers
include GeoQueue include GeoQueue
......
...@@ -4,6 +4,8 @@ module Geo ...@@ -4,6 +4,8 @@ module Geo
class HashedStorageAttachmentsMigrationWorker # rubocop:disable Scalability/IdempotentWorker class HashedStorageAttachmentsMigrationWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GeoQueue include GeoQueue
......
...@@ -4,6 +4,8 @@ module Geo ...@@ -4,6 +4,8 @@ module Geo
class HashedStorageMigrationWorker # rubocop:disable Scalability/IdempotentWorker class HashedStorageMigrationWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GeoQueue include GeoQueue
......
...@@ -4,6 +4,8 @@ module Geo ...@@ -4,6 +4,8 @@ module Geo
class MetricsUpdateWorker # rubocop:disable Scalability/IdempotentWorker class MetricsUpdateWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ExclusiveLeaseGuard include ExclusiveLeaseGuard
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Geo module Geo
class ProjectSyncWorker # rubocop:disable Scalability/IdempotentWorker class ProjectSyncWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include GeoQueue include GeoQueue
include Gitlab::Geo::LogHelpers include Gitlab::Geo::LogHelpers
......
...@@ -4,6 +4,8 @@ module Geo ...@@ -4,6 +4,8 @@ module Geo
class PruneEventLogWorker # rubocop:disable Scalability/IdempotentWorker class PruneEventLogWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -4,6 +4,8 @@ module Geo ...@@ -4,6 +4,8 @@ module Geo
class RenameRepositoryWorker # rubocop:disable Scalability/IdempotentWorker class RenameRepositoryWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GeoQueue include GeoQueue
......
...@@ -4,6 +4,8 @@ module Geo ...@@ -4,6 +4,8 @@ module Geo
class RepositoriesCleanUpWorker # rubocop:disable Scalability/IdempotentWorker class RepositoriesCleanUpWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ExclusiveLeaseGuard include ExclusiveLeaseGuard
include GeoQueue include GeoQueue
......
...@@ -4,6 +4,8 @@ module Geo ...@@ -4,6 +4,8 @@ module Geo
class RepositoryCleanupWorker # rubocop:disable Scalability/IdempotentWorker class RepositoryCleanupWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GeoQueue include GeoQueue
include ::Gitlab::Geo::LogHelpers include ::Gitlab::Geo::LogHelpers
......
...@@ -5,6 +5,8 @@ module Geo ...@@ -5,6 +5,8 @@ module Geo
module Primary module Primary
class SingleWorker # rubocop:disable Scalability/IdempotentWorker class SingleWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include GeoQueue include GeoQueue
include ExclusiveLeaseGuard include ExclusiveLeaseGuard
......
...@@ -5,6 +5,8 @@ module Geo ...@@ -5,6 +5,8 @@ module Geo
module Secondary module Secondary
class SingleWorker # rubocop:disable Scalability/IdempotentWorker class SingleWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include GeoQueue include GeoQueue
include ExclusiveLeaseGuard include ExclusiveLeaseGuard
include Gitlab::Geo::ProjectLogHelpers include Gitlab::Geo::ProjectLogHelpers
......
...@@ -4,6 +4,8 @@ module Geo ...@@ -4,6 +4,8 @@ module Geo
class ReverificationBatchWorker class ReverificationBatchWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GeoQueue include GeoQueue
include LimitedCapacity::Worker include LimitedCapacity::Worker
......
...@@ -5,6 +5,8 @@ module Geo ...@@ -5,6 +5,8 @@ module Geo
class PerShardSchedulerWorker # rubocop:disable Scalability/IdempotentWorker class PerShardSchedulerWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -5,6 +5,8 @@ module Geo ...@@ -5,6 +5,8 @@ module Geo
class SchedulerWorker # rubocop:disable Scalability/IdempotentWorker class SchedulerWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GeoQueue include GeoQueue
include ExclusiveLeaseGuard include ExclusiveLeaseGuard
......
...@@ -8,6 +8,8 @@ module Geo ...@@ -8,6 +8,8 @@ module Geo
class RegistryConsistencyWorker class RegistryConsistencyWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
prepend Reenqueuer prepend Reenqueuer
include ::Gitlab::Geo::LogHelpers include ::Gitlab::Geo::LogHelpers
......
...@@ -6,6 +6,8 @@ module Geo ...@@ -6,6 +6,8 @@ module Geo
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
include ::Gitlab::Geo::LogHelpers include ::Gitlab::Geo::LogHelpers
......
...@@ -4,6 +4,8 @@ module Geo ...@@ -4,6 +4,8 @@ module Geo
class SidekiqCronConfigWorker # rubocop:disable Scalability/IdempotentWorker class SidekiqCronConfigWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -4,6 +4,8 @@ module Geo ...@@ -4,6 +4,8 @@ module Geo
# Fail sync for records which started syncing a long time ago # Fail sync for records which started syncing a long time ago
class SyncTimeoutCronWorker class SyncTimeoutCronWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include ::Gitlab::Geo::LogHelpers include ::Gitlab::Geo::LogHelpers
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -4,6 +4,8 @@ module Geo ...@@ -4,6 +4,8 @@ module Geo
class VerificationBatchWorker class VerificationBatchWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GeoQueue include GeoQueue
include LimitedCapacity::Worker include LimitedCapacity::Worker
......
...@@ -7,6 +7,8 @@ module Geo ...@@ -7,6 +7,8 @@ module Geo
class VerificationCronWorker class VerificationCronWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ::Gitlab::Geo::LogHelpers include ::Gitlab::Geo::LogHelpers
......
...@@ -4,6 +4,8 @@ module Geo ...@@ -4,6 +4,8 @@ module Geo
# Fail verification for records which started verification a long time ago # Fail verification for records which started verification a long time ago
class VerificationTimeoutWorker class VerificationTimeoutWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include GeoQueue include GeoQueue
include ::Gitlab::Geo::LogHelpers include ::Gitlab::Geo::LogHelpers
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Geo module Geo
class VerificationWorker class VerificationWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include GeoQueue include GeoQueue
include ::Gitlab::Geo::LogHelpers include ::Gitlab::Geo::LogHelpers
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class GeoRepositoryDestroyWorker # rubocop:disable Scalability/IdempotentWorker class GeoRepositoryDestroyWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include GeoQueue include GeoQueue
include ::Gitlab::Geo::LogHelpers include ::Gitlab::Geo::LogHelpers
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class GroupSamlGroupSyncWorker class GroupSamlGroupSyncWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include Gitlab::Utils::StrongMemoize include Gitlab::Utils::StrongMemoize
......
...@@ -4,6 +4,8 @@ module Groups ...@@ -4,6 +4,8 @@ module Groups
class ScheduleBulkRepositoryShardMovesWorker class ScheduleBulkRepositoryShardMovesWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
idempotent! idempotent!
......
...@@ -5,6 +5,8 @@ module Groups ...@@ -5,6 +5,8 @@ module Groups
class UpdateStatisticsWorker class UpdateStatisticsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :source_code_management feature_category :source_code_management
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class HistoricalDataWorker # rubocop:disable Scalability/IdempotentWorker class HistoricalDataWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ImportSoftwareLicensesWorker # rubocop:disable Scalability/IdempotentWorker class ImportSoftwareLicensesWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :cronjob queue_namespace :cronjob
......
...@@ -4,6 +4,8 @@ module IncidentManagement ...@@ -4,6 +4,8 @@ module IncidentManagement
class ApplyIncidentSlaExceededLabelWorker class ApplyIncidentSlaExceededLabelWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
idempotent! idempotent!
......
...@@ -4,6 +4,8 @@ module IncidentManagement ...@@ -4,6 +4,8 @@ module IncidentManagement
class IncidentSlaExceededCheckWorker class IncidentSlaExceededCheckWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -5,6 +5,8 @@ module IncidentManagement ...@@ -5,6 +5,8 @@ module IncidentManagement
class PersistAllRotationsShiftsJob class PersistAllRotationsShiftsJob
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
idempotent! idempotent!
......
...@@ -9,6 +9,8 @@ module IncidentManagement ...@@ -9,6 +9,8 @@ module IncidentManagement
class PersistShiftsJob class PersistShiftsJob
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
idempotent! idempotent!
......
...@@ -5,6 +5,8 @@ module IncidentManagement ...@@ -5,6 +5,8 @@ module IncidentManagement
class AlertCheckWorker class AlertCheckWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
urgency :high urgency :high
idempotent! idempotent!
......
...@@ -5,6 +5,8 @@ module IncidentManagement ...@@ -5,6 +5,8 @@ module IncidentManagement
class AlertCreateWorker class AlertCreateWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
urgency :high urgency :high
idempotent! idempotent!
......
...@@ -4,6 +4,8 @@ module IncidentManagement ...@@ -4,6 +4,8 @@ module IncidentManagement
module PendingEscalations module PendingEscalations
class ScheduleCheckCronWorker class ScheduleCheckCronWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -5,6 +5,8 @@ module Iterations ...@@ -5,6 +5,8 @@ module Iterations
class CreateIterationsWorker class CreateIterationsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
idempotent! idempotent!
deduplicate :until_executed, including_scheduled: true deduplicate :until_executed, including_scheduled: true
......
...@@ -5,6 +5,8 @@ module Iterations ...@@ -5,6 +5,8 @@ module Iterations
class ScheduleCreateIterationsWorker class ScheduleCreateIterationsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
BATCH_SIZE = 1000 BATCH_SIZE = 1000
idempotent! idempotent!
......
...@@ -4,6 +4,8 @@ module Iterations ...@@ -4,6 +4,8 @@ module Iterations
class RollOverIssuesWorker class RollOverIssuesWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
BATCH_SIZE = 1000 BATCH_SIZE = 1000
idempotent! idempotent!
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class IterationsUpdateStatusWorker class IterationsUpdateStatusWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
BATCH_SIZE = 1000 BATCH_SIZE = 1000
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class LdapAllGroupsSyncWorker # rubocop:disable Scalability/IdempotentWorker class LdapAllGroupsSyncWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class LdapGroupSyncWorker # rubocop:disable Scalability/IdempotentWorker class LdapGroupSyncWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :authentication_and_authorization feature_category :authentication_and_authorization
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class LdapSyncWorker # rubocop:disable Scalability/IdempotentWorker class LdapSyncWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class MergeRequestResetApprovalsWorker # rubocop:disable Scalability/IdempotentWorker class MergeRequestResetApprovalsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :source_code_management feature_category :source_code_management
......
...@@ -4,6 +4,8 @@ module MergeRequests ...@@ -4,6 +4,8 @@ module MergeRequests
class SyncCodeOwnerApprovalRulesWorker class SyncCodeOwnerApprovalRulesWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :source_code_management feature_category :source_code_management
......
...@@ -4,6 +4,8 @@ module MergeTrains ...@@ -4,6 +4,8 @@ module MergeTrains
class RefreshWorker class RefreshWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :auto_merge queue_namespace :auto_merge
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
class NetworkPolicyMetricsWorker # rubocop:disable Scalability/IdempotentWorker class NetworkPolicyMetricsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :cronjob queue_namespace :cronjob
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class NewEpicWorker # rubocop:disable Scalability/IdempotentWorker class NewEpicWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include NewIssuable include NewIssuable
......
...@@ -5,6 +5,8 @@ module PersonalAccessTokens ...@@ -5,6 +5,8 @@ module PersonalAccessTokens
class PolicyWorker class PolicyWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
idempotent! idempotent!
......
...@@ -5,6 +5,8 @@ module PersonalAccessTokens ...@@ -5,6 +5,8 @@ module PersonalAccessTokens
class PolicyWorker # rubocop:disable Scalability/IdempotentWorker class PolicyWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :personal_access_tokens queue_namespace :personal_access_tokens
......
...@@ -4,6 +4,8 @@ class ProjectImportScheduleWorker ...@@ -4,6 +4,8 @@ class ProjectImportScheduleWorker
ImportStateNotFound = Class.new(StandardError) ImportStateNotFound = Class.new(StandardError)
include ApplicationWorker include ApplicationWorker
data_consistency :always
prepend WaitableWorker prepend WaitableWorker
idempotent! idempotent!
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class PseudonymizerWorker # rubocop:disable Scalability/IdempotentWorker class PseudonymizerWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class RefreshLicenseComplianceChecksWorker # rubocop:disable Scalability/IdempotentWorker class RefreshLicenseComplianceChecksWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :license_compliance feature_category :license_compliance
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class RepositoryPushAuditEventWorker # rubocop:disable Scalability/IdempotentWorker class RepositoryPushAuditEventWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :authentication_and_authorization feature_category :authentication_and_authorization
......
...@@ -4,6 +4,8 @@ class RepositoryUpdateMirrorWorker # rubocop:disable Scalability/IdempotentWorke ...@@ -4,6 +4,8 @@ class RepositoryUpdateMirrorWorker # rubocop:disable Scalability/IdempotentWorke
UpdateError = Class.new(StandardError) UpdateError = Class.new(StandardError)
include ApplicationWorker include ApplicationWorker
data_consistency :always
include Gitlab::ShellAdapter include Gitlab::ShellAdapter
include ProjectStartImport include ProjectStartImport
......
...@@ -4,6 +4,8 @@ module RequirementsManagement ...@@ -4,6 +4,8 @@ module RequirementsManagement
class ImportRequirementsCsvWorker class ImportRequirementsCsvWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include Gitlab::Utils::StrongMemoize include Gitlab::Utils::StrongMemoize
......
...@@ -4,6 +4,8 @@ module RequirementsManagement ...@@ -4,6 +4,8 @@ module RequirementsManagement
class ProcessRequirementsReportsWorker class ProcessRequirementsReportsWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :requirements_management feature_category :requirements_management
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
class ScanSecurityReportSecretsWorker # rubocop:disable Scalability/IdempotentWorker class ScanSecurityReportSecretsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
queue_namespace :security_scans queue_namespace :security_scans
feature_category :secret_detection feature_category :secret_detection
......
...@@ -4,6 +4,8 @@ module Security ...@@ -4,6 +4,8 @@ module Security
class AutoFixWorker class AutoFixWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :vulnerability_management feature_category :vulnerability_management
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Security module Security
class CreateOrchestrationPolicyWorker # rubocop:disable Scalability/IdempotentWorker class CreateOrchestrationPolicyWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
include CronjobQueue include CronjobQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Security module Security
class OrchestrationPolicyRuleScheduleWorker # rubocop:disable Scalability/IdempotentWorker class OrchestrationPolicyRuleScheduleWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
include CronjobQueue include CronjobQueue
......
...@@ -4,6 +4,8 @@ module Security ...@@ -4,6 +4,8 @@ module Security
class StoreScansWorker # rubocop:disable Scalability/IdempotentWorker class StoreScansWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include SecurityScansQueue include SecurityScansQueue
......
...@@ -7,7 +7,7 @@ module Security ...@@ -7,7 +7,7 @@ module Security
include SecurityScansQueue include SecurityScansQueue
sidekiq_options retry: 1 sidekiq_options retry: 1
data_consistency :always
worker_resource_boundary :cpu worker_resource_boundary :cpu
def perform(build_id) def perform(build_id)
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class SetUserStatusBasedOnUserCapSettingWorker class SetUserStatusBasedOnUserCapSettingWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ::Gitlab::Utils::StrongMemoize include ::Gitlab::Utils::StrongMemoize
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module StatusPage module StatusPage
class PublishWorker class PublishWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
include Gitlab::Utils::StrongMemoize include Gitlab::Utils::StrongMemoize
sidekiq_options retry: 5 sidekiq_options retry: 5
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
class StoreSecurityReportsWorker # rubocop:disable Scalability/IdempotentWorker class StoreSecurityReportsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include SecurityScansQueue include SecurityScansQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class StoreSecurityScansWorker # rubocop:disable Scalability/IdempotentWorker class StoreSecurityScansWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include SecurityScansQueue include SecurityScansQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class SyncSeatLinkRequestWorker class SyncSeatLinkRequestWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
feature_category :license feature_category :license
# Retry for up to approximately 6 days # Retry for up to approximately 6 days
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class SyncSeatLinkWorker # rubocop:disable Scalability/IdempotentWorker class SyncSeatLinkWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
include CronjobQueue include CronjobQueue
......
...@@ -4,6 +4,8 @@ module TodosDestroyer ...@@ -4,6 +4,8 @@ module TodosDestroyer
class ConfidentialEpicWorker # rubocop:disable Scalability/IdempotentWorker class ConfidentialEpicWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :todos_destroyer queue_namespace :todos_destroyer
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class UpdateMaxSeatsUsedForGitlabComSubscriptionsWorker # rubocop:disable Scalability/IdempotentWorker class UpdateMaxSeatsUsedForGitlabComSubscriptionsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
......
...@@ -5,6 +5,8 @@ module Vulnerabilities ...@@ -5,6 +5,8 @@ module Vulnerabilities
class DeletionWorker # rubocop:disable Scalability/IdempotentWorker class DeletionWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -5,6 +5,8 @@ module Vulnerabilities ...@@ -5,6 +5,8 @@ module Vulnerabilities
class AdjustmentWorker # rubocop:disable Scalability/IdempotentWorker class AdjustmentWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :vulnerability_management feature_category :vulnerability_management
......
...@@ -5,6 +5,8 @@ module Vulnerabilities ...@@ -5,6 +5,8 @@ module Vulnerabilities
class ScheduleWorker # rubocop:disable Scalability/IdempotentWorker class ScheduleWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext # rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context # This worker does not perform work scoped to a context
......
...@@ -4,6 +4,8 @@ module VulnerabilityExports ...@@ -4,6 +4,8 @@ module VulnerabilityExports
class ExportDeletionWorker class ExportDeletionWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :vulnerability_management feature_category :vulnerability_management
......
...@@ -4,6 +4,8 @@ module VulnerabilityExports ...@@ -4,6 +4,8 @@ module VulnerabilityExports
class ExportWorker class ExportWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
include ::Gitlab::ExclusiveLeaseHelpers include ::Gitlab::ExclusiveLeaseHelpers
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment