Commit 20bf82f5 authored by Alex Kalderimis's avatar Alex Kalderimis

Merge branch '335170-fix-worker-data-consistency-offenses' into 'master'

Fix WorkerDataConsistency cop offenses [RUN AS-IF-FOSS]

See merge request gitlab-org/gitlab!65427
parents 350d973c e49bea27
This diff is collapsed.
...@@ -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!
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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