Commit d93a1355 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Disable CronWorkerContextcop for existing offences

This disables the cops for current offences, so we can get to them
fixed 1 by 1.
parent b5b41f1b
......@@ -2,7 +2,7 @@
class AdminEmailWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category_not_owned!
......
......@@ -3,7 +3,7 @@
module Ci
class ArchiveTracesCronWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :continuous_integration
......
......@@ -2,7 +2,7 @@
class ContainerExpirationPolicyWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :container_registry
......
......@@ -2,7 +2,7 @@
class ExpireBuildArtifactsWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :continuous_integration
......
......@@ -4,7 +4,7 @@ class GitlabUsagePingWorker
LEASE_TIMEOUT = 86400
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category_not_owned!
......
......@@ -2,7 +2,7 @@
class ImportExportProjectCleanupWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :importers
......
......@@ -2,7 +2,7 @@
class IssueDueSchedulerWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :issue_tracking
......
......@@ -3,7 +3,7 @@
module Namespaces
class PruneAggregationSchedulesWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :source_code_management
worker_resource_boundary :cpu
......
......@@ -2,7 +2,7 @@
class PagesDomainRemovalCronWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :pages
worker_resource_boundary :cpu
......
......@@ -2,7 +2,7 @@
class PagesDomainSslRenewalCronWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :pages
......
......@@ -2,7 +2,7 @@
class PagesDomainVerificationCronWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :pages
......
......@@ -3,7 +3,7 @@
module PersonalAccessTokens
class ExpiringWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :authentication_and_authorization
......
......@@ -2,7 +2,7 @@
class PipelineScheduleWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :continuous_integration
worker_resource_boundary :cpu
......
......@@ -2,7 +2,7 @@
class PruneOldEventsWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category_not_owned!
......
......@@ -4,7 +4,7 @@
# table.
class PruneWebHookLogsWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :integrations
......
......@@ -2,7 +2,7 @@
class RemoveExpiredGroupLinksWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :authentication_and_authorization
......
......@@ -2,7 +2,7 @@
class RemoveExpiredMembersWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :authentication_and_authorization
worker_resource_boundary :cpu
......
......@@ -2,7 +2,7 @@
class RemoveUnreferencedLfsObjectsWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :source_code_management
......
......@@ -2,7 +2,7 @@
class RepositoryArchiveCacheWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :source_code_management
......
......@@ -3,7 +3,7 @@
module RepositoryCheck
class DispatchWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
include ::EachShardWorker
include ExclusiveLeaseGuard
......
......@@ -2,7 +2,7 @@
class RequestsProfilesWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :source_code_management
......
......@@ -2,7 +2,7 @@
class ScheduleMigrateExternalDiffsWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
include Gitlab::ExclusiveLeaseHelpers
feature_category :source_code_management
......
......@@ -2,7 +2,7 @@
class StuckCiJobsWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :continuous_integration
worker_resource_boundary :cpu
......
......@@ -2,7 +2,7 @@
class StuckImportJobsWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :importers
worker_resource_boundary :cpu
......
......@@ -2,7 +2,7 @@
class StuckMergeJobsWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :source_code_management
......
......@@ -2,7 +2,7 @@
class TrendingProjectsWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :source_code_management
......
......@@ -2,7 +2,7 @@
class AdjournedGroupDeletionWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
INTERVAL = 5.minutes.to_i
......
......@@ -2,7 +2,7 @@
class AdjournedProjectsDeletionCronWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
INTERVAL = 5.minutes.to_i
......
......@@ -4,7 +4,7 @@ class ClearSharedRunnersMinutesWorker
LEASE_TIMEOUT = 3600
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :continuous_integration
......
......@@ -2,7 +2,7 @@
module Geo
class ContainerRepositorySyncDispatchWorker < Geo::Scheduler::Secondary::SchedulerWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
def perform
unless Gitlab.config.geo.registry_replication.enabled
......
......@@ -2,7 +2,7 @@
module Geo
class FileDownloadDispatchWorker < Geo::Scheduler::Secondary::SchedulerWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
private
......
......@@ -4,7 +4,7 @@ module Geo
class MetricsUpdateWorker
include ApplicationWorker
include ExclusiveLeaseGuard
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :geo_replication
......
......@@ -3,7 +3,7 @@
module Geo
class PruneEventLogWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
include ::Gitlab::Utils::StrongMemoize
include ::Gitlab::Geo::LogHelpers
......
......@@ -4,7 +4,7 @@ module Geo
module RepositoryVerification
module Secondary
class ShardWorker < Geo::Scheduler::Secondary::SchedulerWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
attr_accessor :shard_name
def perform(shard_name)
......
......@@ -4,7 +4,7 @@ module Geo
module Scheduler
class PerShardSchedulerWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
include ::Gitlab::Geo::LogHelpers
include ::EachShardWorker
......
......@@ -3,7 +3,7 @@
module Geo
class SidekiqCronConfigWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :geo_replication
......
......@@ -2,7 +2,7 @@
class HistoricalDataWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :license_compliance
......
......@@ -2,7 +2,7 @@
class LdapAllGroupsSyncWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :authentication_and_authorization
worker_has_external_dependencies!
......
......@@ -2,7 +2,7 @@
class LdapSyncWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :authentication_and_authorization
worker_has_external_dependencies!
......
......@@ -2,7 +2,7 @@
class PseudonymizerWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :integrations
......
......@@ -2,7 +2,7 @@
class UpdateAllMirrorsWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :source_code_management
......
......@@ -2,7 +2,7 @@
class UpdateMaxSeatsUsedForGitlabComSubscriptionsWorker
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :license_compliance
worker_resource_boundary :cpu
......
......@@ -10,7 +10,7 @@ describe CronjobQueue do
end
include ApplicationWorker
include CronjobQueue
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
end
end
......
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