Commit 4ea44cb1 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'default-new-workers-to-25-retries' into 'master'

Set Sidekiq default retries back to 25 (only for new workers) [RUN AS-IF-FOSS]

See merge request gitlab-org/gitlab!59907
parents 06dd3bcf cdf2df8a
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class AdminEmailWorker # rubocop:disable Scalability/IdempotentWorker class AdminEmailWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
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
include CronjobQueue include CronjobQueue
......
...@@ -5,6 +5,8 @@ module Analytics ...@@ -5,6 +5,8 @@ module Analytics
# This worker will be removed in 14.0 # This worker will be removed in 14.0
class CountJobTriggerWorker class CountJobTriggerWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :devops_reports feature_category :devops_reports
......
...@@ -6,6 +6,8 @@ module Analytics ...@@ -6,6 +6,8 @@ module Analytics
class CounterJobWorker class CounterJobWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
feature_category :devops_reports feature_category :devops_reports
urgency :low urgency :low
......
...@@ -5,6 +5,8 @@ module Analytics ...@@ -5,6 +5,8 @@ module Analytics
class CountJobTriggerWorker class CountJobTriggerWorker
extend ::Gitlab::Utils::Override extend ::Gitlab::Utils::Override
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
DEFAULT_DELAY = 3.minutes.freeze DEFAULT_DELAY = 3.minutes.freeze
......
...@@ -6,6 +6,8 @@ module Analytics ...@@ -6,6 +6,8 @@ module Analytics
extend ::Gitlab::Utils::Override extend ::Gitlab::Utils::Override
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
feature_category :devops_reports feature_category :devops_reports
urgency :low urgency :low
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ApproveBlockedPendingApprovalUsersWorker class ApproveBlockedPendingApprovalUsersWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
idempotent! idempotent!
feature_category :users feature_category :users
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class ArchiveTraceWorker # rubocop:disable Scalability/IdempotentWorker class ArchiveTraceWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include PipelineBackgroundQueue include PipelineBackgroundQueue
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class AuthorizedKeysWorker class AuthorizedKeysWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
PERMITTED_ACTIONS = %w[add_key remove_key].freeze PERMITTED_ACTIONS = %w[add_key remove_key].freeze
feature_category :source_code_management feature_category :source_code_management
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module AuthorizedProjectUpdate module AuthorizedProjectUpdate
class PeriodicRecalculateWorker class PeriodicRecalculateWorker
include ApplicationWorker include ApplicationWorker
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
sidekiq_options retry: 3
feature_category :authentication_and_authorization feature_category :authentication_and_authorization
urgency :low urgency :low
queue_namespace :authorized_project_update queue_namespace :authorized_project_update
......
...@@ -4,6 +4,8 @@ module AuthorizedProjectUpdate ...@@ -4,6 +4,8 @@ module AuthorizedProjectUpdate
class ProjectGroupLinkCreateWorker class ProjectGroupLinkCreateWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
feature_category :authentication_and_authorization feature_category :authentication_and_authorization
urgency :low urgency :low
queue_namespace :authorized_project_update queue_namespace :authorized_project_update
......
...@@ -15,6 +15,8 @@ module AuthorizedProjectUpdate ...@@ -15,6 +15,8 @@ module AuthorizedProjectUpdate
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
feature_category :authentication_and_authorization feature_category :authentication_and_authorization
urgency :low urgency :low
queue_namespace :authorized_project_update queue_namespace :authorized_project_update
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class AuthorizedProjectsWorker class AuthorizedProjectsWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
prepend WaitableWorker prepend WaitableWorker
feature_category :authentication_and_authorization feature_category :authentication_and_authorization
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module AutoDevops module AutoDevops
class DisableWorker # rubocop:disable Scalability/IdempotentWorker class DisableWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include AutoDevopsQueue include AutoDevopsQueue
def perform(pipeline_id) def perform(pipeline_id)
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class AutoMergeProcessWorker # rubocop:disable Scalability/IdempotentWorker class AutoMergeProcessWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
queue_namespace :auto_merge queue_namespace :auto_merge
feature_category :continuous_delivery feature_category :continuous_delivery
worker_resource_boundary :cpu worker_resource_boundary :cpu
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class BackgroundMigrationWorker # rubocop:disable Scalability/IdempotentWorker class BackgroundMigrationWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
feature_category :database feature_category :database
urgency :throttled urgency :throttled
loggable_arguments 0, 1 loggable_arguments 0, 1
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class BuildFinishedWorker # rubocop:disable Scalability/IdempotentWorker class BuildFinishedWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
queue_namespace :pipeline_processing queue_namespace :pipeline_processing
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class BuildHooksWorker # rubocop:disable Scalability/IdempotentWorker class BuildHooksWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
queue_namespace :pipeline_hooks queue_namespace :pipeline_hooks
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class BuildQueueWorker # rubocop:disable Scalability/IdempotentWorker class BuildQueueWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
queue_namespace :pipeline_processing queue_namespace :pipeline_processing
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class BuildSuccessWorker # rubocop:disable Scalability/IdempotentWorker class BuildSuccessWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
queue_namespace :pipeline_processing queue_namespace :pipeline_processing
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Chaos module Chaos
class CpuSpinWorker # rubocop:disable Scalability/IdempotentWorker class CpuSpinWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ChaosQueue include ChaosQueue
def perform(duration_s) def perform(duration_s)
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Chaos module Chaos
class DbSpinWorker # rubocop:disable Scalability/IdempotentWorker class DbSpinWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ChaosQueue include ChaosQueue
def perform(duration_s, interval_s) def perform(duration_s, interval_s)
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Chaos module Chaos
class LeakMemWorker # rubocop:disable Scalability/IdempotentWorker class LeakMemWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ChaosQueue include ChaosQueue
def perform(memory_mb, duration_s) def perform(memory_mb, duration_s)
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Chaos module Chaos
class SleepWorker # rubocop:disable Scalability/IdempotentWorker class SleepWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ChaosQueue include ChaosQueue
def perform(duration_s) def perform(duration_s)
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Ci module Ci
class ArchiveTracesCronWorker # rubocop:disable Scalability/IdempotentWorker class ArchiveTracesCronWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :continuous_integration feature_category :continuous_integration
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Ci module Ci
class BuildPrepareWorker # rubocop:disable Scalability/IdempotentWorker class BuildPrepareWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
queue_namespace :pipeline_processing queue_namespace :pipeline_processing
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Ci module Ci
class BuildScheduleWorker # rubocop:disable Scalability/IdempotentWorker class BuildScheduleWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
queue_namespace :pipeline_processing queue_namespace :pipeline_processing
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Ci module Ci
class BuildTraceChunkFlushWorker class BuildTraceChunkFlushWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include PipelineBackgroundQueue include PipelineBackgroundQueue
deduplicate :until_executed deduplicate :until_executed
......
...@@ -5,6 +5,7 @@ module Ci ...@@ -5,6 +5,7 @@ module Ci
include ::ApplicationWorker include ::ApplicationWorker
include ::PipelineQueue include ::PipelineQueue
sidekiq_options retry: 3
worker_resource_boundary :cpu worker_resource_boundary :cpu
def perform(bridge_id) def perform(bridge_id)
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Ci module Ci
class DailyBuildGroupReportResultsWorker class DailyBuildGroupReportResultsWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include PipelineBackgroundQueue include PipelineBackgroundQueue
feature_category :code_testing feature_category :code_testing
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Ci module Ci
class DeleteObjectsWorker class DeleteObjectsWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include LimitedCapacity::Worker include LimitedCapacity::Worker
feature_category :continuous_integration feature_category :continuous_integration
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Ci module Ci
class DropPipelineWorker class DropPipelineWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
idempotent! idempotent!
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Ci module Ci
class InitialPipelineProcessWorker class InitialPipelineProcessWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
queue_namespace :pipeline_processing queue_namespace :pipeline_processing
......
...@@ -3,6 +3,8 @@ module Ci ...@@ -3,6 +3,8 @@ module Ci
module MergeRequests module MergeRequests
class AddTodoWhenBuildFailsWorker class AddTodoWhenBuildFailsWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
urgency :low urgency :low
......
...@@ -4,6 +4,8 @@ module Ci ...@@ -4,6 +4,8 @@ module Ci
module PipelineArtifacts module PipelineArtifacts
class CoverageReportWorker class CoverageReportWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include PipelineBackgroundQueue include PipelineBackgroundQueue
feature_category :code_testing feature_category :code_testing
......
...@@ -5,6 +5,8 @@ module Ci ...@@ -5,6 +5,8 @@ module Ci
class CreateQualityReportWorker class CreateQualityReportWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
queue_namespace :pipeline_background queue_namespace :pipeline_background
feature_category :code_testing feature_category :code_testing
......
...@@ -4,6 +4,8 @@ module Ci ...@@ -4,6 +4,8 @@ module Ci
module PipelineArtifacts module PipelineArtifacts
class ExpireArtifactsWorker class ExpireArtifactsWorker
include ApplicationWorker include ApplicationWorker
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
include CronjobQueue include CronjobQueue
......
...@@ -5,6 +5,7 @@ module Ci ...@@ -5,6 +5,7 @@ module Ci
include ::ApplicationWorker include ::ApplicationWorker
include ::PipelineQueue include ::PipelineQueue
sidekiq_options retry: 3
urgency :high urgency :high
worker_resource_boundary :cpu worker_resource_boundary :cpu
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Ci module Ci
class PipelineSuccessUnlockArtifactsWorker class PipelineSuccessUnlockArtifactsWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include PipelineBackgroundQueue include PipelineBackgroundQueue
idempotent! idempotent!
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Ci module Ci
class RefDeleteUnlockArtifactsWorker class RefDeleteUnlockArtifactsWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include PipelineBackgroundQueue include PipelineBackgroundQueue
idempotent! idempotent!
......
...@@ -4,6 +4,8 @@ module Ci ...@@ -4,6 +4,8 @@ module Ci
module ResourceGroups module ResourceGroups
class AssignResourceFromResourceGroupWorker # rubocop:disable Scalability/IdempotentWorker class AssignResourceFromResourceGroupWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
queue_namespace :pipeline_processing queue_namespace :pipeline_processing
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Ci module Ci
class ScheduleDeleteObjectsCronWorker class ScheduleDeleteObjectsCronWorker
include ApplicationWorker include ApplicationWorker
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
include CronjobQueue include CronjobQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Ci module Ci
class TestFailureHistoryWorker class TestFailureHistoryWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include PipelineBackgroundQueue include PipelineBackgroundQueue
idempotent! idempotent!
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class CiPlatformMetricsUpdateCronWorker # rubocop:disable Scalability/IdempotentWorker class CiPlatformMetricsUpdateCronWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
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
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class CleanupContainerRepositoryWorker class CleanupContainerRepositoryWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
queue_namespace :container_repository queue_namespace :container_repository
feature_category :container_registry feature_category :container_registry
urgency :low urgency :low
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class ClusterConfigureIstioWorker # rubocop:disable Scalability/IdempotentWorker class ClusterConfigureIstioWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
worker_has_external_dependencies! worker_has_external_dependencies!
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class ClusterInstallAppWorker # rubocop:disable Scalability/IdempotentWorker class ClusterInstallAppWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
include ClusterApplications include ClusterApplications
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class ClusterPatchAppWorker # rubocop:disable Scalability/IdempotentWorker class ClusterPatchAppWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
include ClusterApplications include ClusterApplications
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class ClusterProvisionWorker # rubocop:disable Scalability/IdempotentWorker class ClusterProvisionWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
worker_has_external_dependencies! worker_has_external_dependencies!
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class ClusterUpgradeAppWorker # rubocop:disable Scalability/IdempotentWorker class ClusterUpgradeAppWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
include ClusterApplications include ClusterApplications
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class ClusterWaitForAppInstallationWorker # rubocop:disable Scalability/IdempotentWorker class ClusterWaitForAppInstallationWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
include ClusterApplications include ClusterApplications
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class ClusterWaitForAppUpdateWorker # rubocop:disable Scalability/IdempotentWorker class ClusterWaitForAppUpdateWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
include ClusterApplications include ClusterApplications
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class ClusterWaitForIngressIpAddressWorker # rubocop:disable Scalability/IdempotentWorker class ClusterWaitForIngressIpAddressWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
include ClusterApplications include ClusterApplications
......
...@@ -4,6 +4,8 @@ module Clusters ...@@ -4,6 +4,8 @@ module Clusters
module Applications module Applications
class ActivateServiceWorker # rubocop:disable Scalability/IdempotentWorker class ActivateServiceWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
loggable_arguments 1 loggable_arguments 1
......
...@@ -4,6 +4,8 @@ module Clusters ...@@ -4,6 +4,8 @@ module Clusters
module Applications module Applications
class CheckPrometheusHealthWorker class CheckPrometheusHealthWorker
include ApplicationWorker include ApplicationWorker
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
include CronjobQueue include CronjobQueue
......
...@@ -4,6 +4,8 @@ module Clusters ...@@ -4,6 +4,8 @@ module Clusters
module Applications module Applications
class DeactivateServiceWorker # rubocop:disable Scalability/IdempotentWorker class DeactivateServiceWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
loggable_arguments 1 loggable_arguments 1
......
...@@ -4,6 +4,8 @@ module Clusters ...@@ -4,6 +4,8 @@ module Clusters
module Applications module Applications
class UninstallWorker # rubocop:disable Scalability/IdempotentWorker class UninstallWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
include ClusterApplications include ClusterApplications
......
...@@ -4,6 +4,8 @@ module Clusters ...@@ -4,6 +4,8 @@ module Clusters
module Applications module Applications
class WaitForUninstallAppWorker # rubocop:disable Scalability/IdempotentWorker class WaitForUninstallAppWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ClusterQueue include ClusterQueue
include ClusterApplications include ClusterApplications
......
...@@ -9,6 +9,8 @@ module Gitlab ...@@ -9,6 +9,8 @@ module Gitlab
included do included do
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include GithubImport::Queue include GithubImport::Queue
include ReschedulingMethods include ReschedulingMethods
include Gitlab::NotifyUponDeath include Gitlab::NotifyUponDeath
......
...@@ -7,6 +7,8 @@ module Gitlab ...@@ -7,6 +7,8 @@ module Gitlab
included do included do
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ProjectImportOptions include ProjectImportOptions
include Gitlab::JiraImport::QueueOptions include Gitlab::JiraImport::QueueOptions
end end
......
...@@ -6,6 +6,8 @@ module ReactiveCacheableWorker ...@@ -6,6 +6,8 @@ module ReactiveCacheableWorker
included do included do
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
feature_category_not_owned! feature_category_not_owned!
loggable_arguments 0 loggable_arguments 0
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module ContainerExpirationPolicies module ContainerExpirationPolicies
class CleanupContainerRepositoryWorker class CleanupContainerRepositoryWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include LimitedCapacity::Worker include LimitedCapacity::Worker
include Gitlab::Utils::StrongMemoize include Gitlab::Utils::StrongMemoize
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class ContainerExpirationPolicyWorker # rubocop:disable Scalability/IdempotentWorker class ContainerExpirationPolicyWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
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
sidekiq_options retry: 3
feature_category :source_code_management feature_category :source_code_management
weight 2 weight 2
idempotent! idempotent!
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class CreateNoteDiffFileWorker # rubocop:disable Scalability/IdempotentWorker class CreateNoteDiffFileWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
feature_category :code_review feature_category :code_review
def perform(diff_note_id) def perform(diff_note_id)
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class CreatePipelineWorker # rubocop:disable Scalability/IdempotentWorker class CreatePipelineWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
queue_namespace :pipeline_creation queue_namespace :pipeline_creation
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Database module Database
class BatchedBackgroundMigrationWorker class BatchedBackgroundMigrationWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :database feature_category :database
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class DeleteContainerRepositoryWorker # rubocop:disable Scalability/IdempotentWorker class DeleteContainerRepositoryWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ExclusiveLeaseGuard include ExclusiveLeaseGuard
queue_namespace :container_repository queue_namespace :container_repository
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class DeleteDiffFilesWorker # rubocop:disable Scalability/IdempotentWorker class DeleteDiffFilesWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
feature_category :code_review feature_category :code_review
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class DeleteMergedBranchesWorker # rubocop:disable Scalability/IdempotentWorker class DeleteMergedBranchesWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
feature_category :source_code_management feature_category :source_code_management
def perform(project_id, user_id) def perform(project_id, user_id)
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class DeleteStoredFilesWorker # rubocop:disable Scalability/IdempotentWorker class DeleteStoredFilesWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
feature_category_not_owned! feature_category_not_owned!
loggable_arguments 0 loggable_arguments 0
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class DeleteUserWorker # rubocop:disable Scalability/IdempotentWorker class DeleteUserWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
feature_category :authentication_and_authorization feature_category :authentication_and_authorization
loggable_arguments 2 loggable_arguments 2
......
...@@ -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
sidekiq_options retry: 3
queue_namespace :deployment queue_namespace :deployment
feature_category :continuous_delivery feature_category :continuous_delivery
......
...@@ -5,6 +5,8 @@ module Deployments ...@@ -5,6 +5,8 @@ module Deployments
class ExecuteHooksWorker # rubocop:disable Scalability/IdempotentWorker class ExecuteHooksWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
queue_namespace :deployment queue_namespace :deployment
feature_category :continuous_delivery feature_category :continuous_delivery
worker_resource_boundary :cpu worker_resource_boundary :cpu
......
...@@ -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
sidekiq_options retry: 3
queue_namespace :deployment queue_namespace :deployment
feature_category :continuous_delivery feature_category :continuous_delivery
worker_resource_boundary :cpu worker_resource_boundary :cpu
......
...@@ -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
sidekiq_options retry: 3
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
sidekiq_options retry: 3
queue_namespace :deployment queue_namespace :deployment
idempotent! idempotent!
feature_category :continuous_delivery feature_category :continuous_delivery
......
...@@ -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
sidekiq_options retry: 3
queue_namespace :deployment queue_namespace :deployment
feature_category :continuous_delivery feature_category :continuous_delivery
worker_resource_boundary :cpu worker_resource_boundary :cpu
......
...@@ -4,6 +4,8 @@ module Deployments ...@@ -4,6 +4,8 @@ module Deployments
class UpdateEnvironmentWorker class UpdateEnvironmentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
queue_namespace :deployment queue_namespace :deployment
idempotent! idempotent!
feature_category :continuous_delivery feature_category :continuous_delivery
......
...@@ -4,6 +4,8 @@ module DesignManagement ...@@ -4,6 +4,8 @@ module DesignManagement
class CopyDesignCollectionWorker class CopyDesignCollectionWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
feature_category :design_management feature_category :design_management
idempotent! idempotent!
urgency :low urgency :low
......
...@@ -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
sidekiq_options retry: 3
feature_category :design_management feature_category :design_management
# Declare this worker as memory bound due to # Declare this worker as memory bound due to
# `GenerateImageVersionsService` resizing designs # `GenerateImageVersionsService` resizing designs
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class DisallowTwoFactorForGroupWorker class DisallowTwoFactorForGroupWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ExceptionBacktrace include ExceptionBacktrace
feature_category :subgroups feature_category :subgroups
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class DisallowTwoFactorForSubgroupsWorker class DisallowTwoFactorForSubgroupsWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ExceptionBacktrace include ExceptionBacktrace
INTERVAL = 2.seconds.to_i INTERVAL = 2.seconds.to_i
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class EmailReceiverWorker # rubocop:disable Scalability/IdempotentWorker class EmailReceiverWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
feature_category :issue_tracking feature_category :issue_tracking
urgency :high urgency :high
weight 2 weight 2
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class EmailsOnPushWorker # rubocop:disable Scalability/IdempotentWorker class EmailsOnPushWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
attr_reader :email, :skip_premailer attr_reader :email, :skip_premailer
feature_category :source_code_management feature_category :source_code_management
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Environments module Environments
class AutoStopCronWorker # rubocop:disable Scalability/IdempotentWorker class AutoStopCronWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :continuous_delivery feature_category :continuous_delivery
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
# until the prior link is deleted. # until the prior link is deleted.
class ErrorTrackingIssueLinkWorker # rubocop:disable Scalability/IdempotentWorker class ErrorTrackingIssueLinkWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
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
sidekiq_options retry: 3
feature_category :users feature_category :users
urgency :low urgency :low
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class ExpireBuildArtifactsWorker # rubocop:disable Scalability/IdempotentWorker class ExpireBuildArtifactsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
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
include CronjobQueue include CronjobQueue
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ExpireBuildInstanceArtifactsWorker # rubocop:disable Scalability/IdempotentWorker class ExpireBuildInstanceArtifactsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
feature_category :continuous_integration feature_category :continuous_integration
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class ExpireJobCacheWorker class ExpireJobCacheWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
queue_namespace :pipeline_cache queue_namespace :pipeline_cache
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
class ExpirePipelineCacheWorker class ExpirePipelineCacheWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include PipelineQueue include PipelineQueue
queue_namespace :pipeline_cache queue_namespace :pipeline_cache
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
class ExportCsvWorker # rubocop:disable Scalability/IdempotentWorker class ExportCsvWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
feature_category :issue_tracking feature_category :issue_tracking
worker_resource_boundary :cpu worker_resource_boundary :cpu
loggable_arguments 2 loggable_arguments 2
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
class FlushCounterIncrementsWorker class FlushCounterIncrementsWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
feature_category_not_owned! feature_category_not_owned!
urgency :low urgency :low
deduplicate :until_executing, including_scheduled: true deduplicate :until_executing, including_scheduled: true
......
...@@ -8,6 +8,8 @@ module Gitlab ...@@ -8,6 +8,8 @@ module Gitlab
# stage. # stage.
class AdvanceStageWorker # rubocop:disable Scalability/IdempotentWorker class AdvanceStageWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ::Gitlab::Import::AdvanceStage include ::Gitlab::Import::AdvanceStage
sidekiq_options dead: false sidekiq_options dead: false
......
...@@ -4,6 +4,8 @@ module Gitlab ...@@ -4,6 +4,8 @@ module Gitlab
module GithubImport module GithubImport
class RefreshImportJidWorker # rubocop:disable Scalability/IdempotentWorker class RefreshImportJidWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include GithubImport::Queue include GithubImport::Queue
# The interval to schedule new instances of this job at. # The interval to schedule new instances of this job at.
......
...@@ -5,6 +5,8 @@ module Gitlab ...@@ -5,6 +5,8 @@ module Gitlab
module Stage module Stage
class FinishImportWorker # rubocop:disable Scalability/IdempotentWorker class FinishImportWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
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
module Stage module Stage
class ImportBaseDataWorker # rubocop:disable Scalability/IdempotentWorker class ImportBaseDataWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
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
module Stage module Stage
class ImportIssuesAndDiffNotesWorker # rubocop:disable Scalability/IdempotentWorker class ImportIssuesAndDiffNotesWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
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
module Stage module Stage
class ImportLfsObjectsWorker # rubocop:disable Scalability/IdempotentWorker class ImportLfsObjectsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include GithubImport::Queue include GithubImport::Queue
include StageMethods include StageMethods
......
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