Commit 628d98ca authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch 'tag-workers-as-excluded-from-gitlab-com' into 'master'

Tag some workers that we don't run on GitLab.com

See merge request gitlab-org/gitlab!61238
parents 59e23109 aa93ddb9
...@@ -65,7 +65,8 @@ ...@@ -65,7 +65,8 @@
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
:tags: [] :tags:
- :exclude_from_gitlab_com
- :name: chaos:chaos_db_spin - :name: chaos:chaos_db_spin
:worker_name: Chaos::DbSpinWorker :worker_name: Chaos::DbSpinWorker
:feature_category: :not_owned :feature_category: :not_owned
...@@ -74,7 +75,8 @@ ...@@ -74,7 +75,8 @@
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
:tags: [] :tags:
- :exclude_from_gitlab_com
- :name: chaos:chaos_kill - :name: chaos:chaos_kill
:worker_name: Chaos::KillWorker :worker_name: Chaos::KillWorker
:feature_category: :not_owned :feature_category: :not_owned
...@@ -83,7 +85,8 @@ ...@@ -83,7 +85,8 @@
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
:tags: [] :tags:
- :exclude_from_gitlab_com
- :name: chaos:chaos_leak_mem - :name: chaos:chaos_leak_mem
:worker_name: Chaos::LeakMemWorker :worker_name: Chaos::LeakMemWorker
:feature_category: :not_owned :feature_category: :not_owned
...@@ -92,7 +95,8 @@ ...@@ -92,7 +95,8 @@
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
:tags: [] :tags:
- :exclude_from_gitlab_com
- :name: chaos:chaos_sleep - :name: chaos:chaos_sleep
:worker_name: Chaos::SleepWorker :worker_name: Chaos::SleepWorker
:feature_category: :not_owned :feature_category: :not_owned
...@@ -101,7 +105,8 @@ ...@@ -101,7 +105,8 @@
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
:tags: [] :tags:
- :exclude_from_gitlab_com
- :name: container_repository:cleanup_container_repository - :name: container_repository:cleanup_container_repository
:worker_name: CleanupContainerRepositoryWorker :worker_name: CleanupContainerRepositoryWorker
:feature_category: :container_registry :feature_category: :container_registry
...@@ -1014,7 +1019,8 @@ ...@@ -1014,7 +1019,8 @@
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
:tags: [] :tags:
- :exclude_from_gitlab_com
- :name: hashed_storage:hashed_storage_project_migrate - :name: hashed_storage:hashed_storage_project_migrate
:worker_name: HashedStorage::ProjectMigrateWorker :worker_name: HashedStorage::ProjectMigrateWorker
:feature_category: :source_code_management :feature_category: :source_code_management
...@@ -1023,7 +1029,8 @@ ...@@ -1023,7 +1029,8 @@
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
:tags: [] :tags:
- :exclude_from_gitlab_com
- :name: hashed_storage:hashed_storage_project_rollback - :name: hashed_storage:hashed_storage_project_rollback
:worker_name: HashedStorage::ProjectRollbackWorker :worker_name: HashedStorage::ProjectRollbackWorker
:feature_category: :source_code_management :feature_category: :source_code_management
...@@ -1032,7 +1039,8 @@ ...@@ -1032,7 +1039,8 @@
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
:tags: [] :tags:
- :exclude_from_gitlab_com
- :name: hashed_storage:hashed_storage_rollbacker - :name: hashed_storage:hashed_storage_rollbacker
:worker_name: HashedStorage::RollbackerWorker :worker_name: HashedStorage::RollbackerWorker
:feature_category: :source_code_management :feature_category: :source_code_management
...@@ -1041,7 +1049,8 @@ ...@@ -1041,7 +1049,8 @@
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
:tags: [] :tags:
- :exclude_from_gitlab_com
- :name: incident_management:clusters_applications_check_prometheus_health - :name: incident_management:clusters_applications_check_prometheus_health
:worker_name: Clusters::Applications::CheckPrometheusHealthWorker :worker_name: Clusters::Applications::CheckPrometheusHealthWorker
:feature_category: :incident_management :feature_category: :incident_management
......
...@@ -6,5 +6,6 @@ module ChaosQueue ...@@ -6,5 +6,6 @@ module ChaosQueue
included do included do
queue_namespace :chaos queue_namespace :chaos
feature_category_not_owned! feature_category_not_owned!
tags :exclude_from_gitlab_com
end end
end end
...@@ -8,6 +8,7 @@ module HashedStorage ...@@ -8,6 +8,7 @@ module HashedStorage
queue_namespace :hashed_storage queue_namespace :hashed_storage
feature_category :source_code_management feature_category :source_code_management
tags :exclude_from_gitlab_com
# @param [Integer] start initial ID of the batch # @param [Integer] start initial ID of the batch
# @param [Integer] finish last ID of the batch # @param [Integer] finish last ID of the batch
......
...@@ -8,6 +8,7 @@ module HashedStorage ...@@ -8,6 +8,7 @@ module HashedStorage
queue_namespace :hashed_storage queue_namespace :hashed_storage
loggable_arguments 1 loggable_arguments 1
tags :exclude_from_gitlab_com
attr_reader :project_id attr_reader :project_id
......
...@@ -8,6 +8,7 @@ module HashedStorage ...@@ -8,6 +8,7 @@ module HashedStorage
queue_namespace :hashed_storage queue_namespace :hashed_storage
loggable_arguments 1 loggable_arguments 1
tags :exclude_from_gitlab_com
attr_reader :project_id attr_reader :project_id
......
...@@ -8,6 +8,7 @@ module HashedStorage ...@@ -8,6 +8,7 @@ module HashedStorage
queue_namespace :hashed_storage queue_namespace :hashed_storage
feature_category :source_code_management feature_category :source_code_management
tags :exclude_from_gitlab_com
# @param [Integer] start initial ID of the batch # @param [Integer] start initial ID of the batch
# @param [Integer] finish last ID of the batch # @param [Integer] finish last ID of the batch
......
This diff is collapsed.
...@@ -7,5 +7,6 @@ module GeoQueue ...@@ -7,5 +7,6 @@ module GeoQueue
included do included do
queue_namespace :geo queue_namespace :geo
feature_category :geo_replication feature_category :geo_replication
tags :exclude_from_gitlab_com
end end
end end
...@@ -7,6 +7,8 @@ module Geo ...@@ -7,6 +7,8 @@ module Geo
include CronjobQueue include CronjobQueue
# rubocop:enable Scalability/CronWorkerContext # rubocop:enable Scalability/CronWorkerContext
tags :exclude_from_gitlab_com
def perform def perform
unless ::Geo::ContainerRepositoryRegistry.replication_enabled? unless ::Geo::ContainerRepositoryRegistry.replication_enabled?
log_info('Container Registry replication is not enabled') log_info('Container Registry replication is not enabled')
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
module Geo module Geo
class DesignRepositoryShardSyncWorker < RepositoryShardSyncWorker # rubocop:disable Scalability/IdempotentWorker class DesignRepositoryShardSyncWorker < RepositoryShardSyncWorker # rubocop:disable Scalability/IdempotentWorker
tags :exclude_from_gitlab_com
private private
def schedule_job(project_id) def schedule_job(project_id)
......
...@@ -10,7 +10,7 @@ module Geo ...@@ -10,7 +10,7 @@ module Geo
idempotent! idempotent!
tags :exclude_from_kubernetes tags :exclude_from_kubernetes, :exclude_from_gitlab_com
loggable_arguments 0 loggable_arguments 0
def perform(replicable_name, replicable_id) def perform(replicable_name, replicable_id)
......
...@@ -7,6 +7,8 @@ module Geo ...@@ -7,6 +7,8 @@ module Geo
include CronjobQueue include CronjobQueue
# rubocop:enable Scalability/CronWorkerContext # rubocop:enable Scalability/CronWorkerContext
tags :exclude_from_gitlab_com
private private
# Cannot utilise backoff because there are no events currently being # Cannot utilise backoff because there are no events currently being
......
...@@ -12,6 +12,7 @@ module Geo ...@@ -12,6 +12,7 @@ module Geo
# rubocop:enable Scalability/CronWorkerContext # rubocop:enable Scalability/CronWorkerContext
feature_category :geo_replication feature_category :geo_replication
tags :exclude_from_gitlab_com
LEASE_TIMEOUT = 5.minutes LEASE_TIMEOUT = 5.minutes
......
...@@ -12,6 +12,7 @@ module Geo ...@@ -12,6 +12,7 @@ module Geo
include ::Gitlab::Geo::LogHelpers include ::Gitlab::Geo::LogHelpers
feature_category :geo_replication feature_category :geo_replication
tags :exclude_from_gitlab_com
def perform def perform
return if Gitlab::Database.read_only? return if Gitlab::Database.read_only?
......
...@@ -4,6 +4,7 @@ module Geo ...@@ -4,6 +4,7 @@ module Geo
class RepositoryShardSyncWorker < Geo::Scheduler::Secondary::SchedulerWorker # rubocop:disable Scalability/IdempotentWorker class RepositoryShardSyncWorker < Geo::Scheduler::Secondary::SchedulerWorker # rubocop:disable Scalability/IdempotentWorker
sidekiq_options retry: false sidekiq_options retry: false
loggable_arguments 0 loggable_arguments 0
tags :exclude_from_gitlab_com
attr_accessor :shard_name attr_accessor :shard_name
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
module Geo module Geo
class RepositorySyncWorker < Geo::Scheduler::Secondary::PerShardSchedulerWorker # rubocop:disable Scalability/IdempotentWorker class RepositorySyncWorker < Geo::Scheduler::Secondary::PerShardSchedulerWorker # rubocop:disable Scalability/IdempotentWorker
tags :exclude_from_gitlab_com
def schedule_job(shard_name) def schedule_job(shard_name)
Geo::RepositoryShardSyncWorker.perform_async(shard_name) Geo::RepositoryShardSyncWorker.perform_async(shard_name)
Geo::DesignRepositoryShardSyncWorker.perform_async(shard_name) Geo::DesignRepositoryShardSyncWorker.perform_async(shard_name)
......
...@@ -4,6 +4,8 @@ module Geo ...@@ -4,6 +4,8 @@ module Geo
module RepositoryVerification module RepositoryVerification
module Primary module Primary
class BatchWorker < Geo::Scheduler::Primary::PerShardSchedulerWorker # rubocop:disable Scalability/IdempotentWorker class BatchWorker < Geo::Scheduler::Primary::PerShardSchedulerWorker # rubocop:disable Scalability/IdempotentWorker
tags :exclude_from_gitlab_com
def perform def perform
return unless Gitlab::Geo.repository_verification_enabled? return unless Gitlab::Geo.repository_verification_enabled?
......
...@@ -6,6 +6,7 @@ module Geo ...@@ -6,6 +6,7 @@ module Geo
class ShardWorker < Geo::Scheduler::Primary::SchedulerWorker # rubocop:disable Scalability/IdempotentWorker class ShardWorker < Geo::Scheduler::Primary::SchedulerWorker # rubocop:disable Scalability/IdempotentWorker
sidekiq_options retry: false sidekiq_options retry: false
loggable_arguments 0 loggable_arguments 0
tags :exclude_from_gitlab_com
attr_accessor :shard_name attr_accessor :shard_name
......
...@@ -9,6 +9,7 @@ module Geo ...@@ -9,6 +9,7 @@ module Geo
include ExclusiveLeaseGuard include ExclusiveLeaseGuard
sidekiq_options retry: false sidekiq_options retry: false
tags :exclude_from_gitlab_com
LEASE_TIMEOUT = 1.hour.to_i LEASE_TIMEOUT = 1.hour.to_i
......
...@@ -4,6 +4,8 @@ module Geo ...@@ -4,6 +4,8 @@ module Geo
module RepositoryVerification module RepositoryVerification
module Secondary module Secondary
class SchedulerWorker < Geo::Scheduler::Secondary::PerShardSchedulerWorker # rubocop:disable Scalability/IdempotentWorker class SchedulerWorker < Geo::Scheduler::Secondary::PerShardSchedulerWorker # rubocop:disable Scalability/IdempotentWorker
tags :exclude_from_gitlab_com
def perform def perform
return unless Gitlab::Geo.repository_verification_enabled? return unless Gitlab::Geo.repository_verification_enabled?
......
...@@ -12,6 +12,7 @@ module Geo ...@@ -12,6 +12,7 @@ module Geo
attr_accessor :shard_name attr_accessor :shard_name
loggable_arguments 0 loggable_arguments 0
tags :exclude_from_gitlab_com
def perform(shard_name) def perform(shard_name)
@shard_name = shard_name @shard_name = shard_name
......
...@@ -10,6 +10,7 @@ module Geo ...@@ -10,6 +10,7 @@ module Geo
include Gitlab::Geo::ProjectLogHelpers include Gitlab::Geo::ProjectLogHelpers
sidekiq_options retry: false sidekiq_options retry: false
tags :exclude_from_gitlab_com
LEASE_TIMEOUT = 1.hour.to_i LEASE_TIMEOUT = 1.hour.to_i
......
...@@ -15,7 +15,7 @@ module Geo ...@@ -15,7 +15,7 @@ module Geo
MAX_RUNNING_JOBS = 1 MAX_RUNNING_JOBS = 1
idempotent! idempotent!
tags :exclude_from_kubernetes tags :exclude_from_kubernetes, :exclude_from_gitlab_com
loggable_arguments 0 loggable_arguments 0
def perform_work(replicable_name) def perform_work(replicable_name)
......
...@@ -14,6 +14,7 @@ module Geo ...@@ -14,6 +14,7 @@ module Geo
include ::EachShardWorker include ::EachShardWorker
feature_category :geo_replication feature_category :geo_replication
tags :exclude_from_gitlab_com
# These workers are enqueued every minute by sidekiq-cron. If one of them # These workers are enqueued every minute by sidekiq-cron. If one of them
# is already enqueued or running, then there isn't a strong case for # is already enqueued or running, then there isn't a strong case for
......
...@@ -4,6 +4,8 @@ module Geo ...@@ -4,6 +4,8 @@ module Geo
module Scheduler module Scheduler
module Primary module Primary
class PerShardSchedulerWorker < Geo::Scheduler::PerShardSchedulerWorker # rubocop:disable Scalability/IdempotentWorker class PerShardSchedulerWorker < Geo::Scheduler::PerShardSchedulerWorker # rubocop:disable Scalability/IdempotentWorker
tags :exclude_from_gitlab_com
def perform def perform
unless Gitlab::Geo.primary? unless Gitlab::Geo.primary?
log_info('Current node not a primary') log_info('Current node not a primary')
......
...@@ -4,6 +4,8 @@ module Geo ...@@ -4,6 +4,8 @@ module Geo
module Scheduler module Scheduler
module Primary module Primary
class SchedulerWorker < Geo::Scheduler::SchedulerWorker # rubocop:disable Scalability/IdempotentWorker class SchedulerWorker < Geo::Scheduler::SchedulerWorker # rubocop:disable Scalability/IdempotentWorker
tags :exclude_from_gitlab_com
def perform def perform
return unless Gitlab::Geo.primary? return unless Gitlab::Geo.primary?
......
...@@ -4,6 +4,8 @@ module Geo ...@@ -4,6 +4,8 @@ module Geo
module Scheduler module Scheduler
module Secondary module Secondary
class PerShardSchedulerWorker < Geo::Scheduler::PerShardSchedulerWorker # rubocop:disable Scalability/IdempotentWorker class PerShardSchedulerWorker < Geo::Scheduler::PerShardSchedulerWorker # rubocop:disable Scalability/IdempotentWorker
tags :exclude_from_gitlab_com
def perform def perform
unless Gitlab::Geo.geo_database_configured? unless Gitlab::Geo.geo_database_configured?
log_info('Geo database not configured') log_info('Geo database not configured')
......
...@@ -4,6 +4,8 @@ module Geo ...@@ -4,6 +4,8 @@ module Geo
module Scheduler module Scheduler
module Secondary module Secondary
class SchedulerWorker < Geo::Scheduler::SchedulerWorker # rubocop:disable Scalability/IdempotentWorker class SchedulerWorker < Geo::Scheduler::SchedulerWorker # rubocop:disable Scalability/IdempotentWorker
tags :exclude_from_gitlab_com
def perform def perform
unless Gitlab::Geo.geo_database_configured? unless Gitlab::Geo.geo_database_configured?
log_info('Geo database not configured') log_info('Geo database not configured')
......
...@@ -16,6 +16,7 @@ module Geo ...@@ -16,6 +16,7 @@ module Geo
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :geo_replication feature_category :geo_replication
tags :exclude_from_gitlab_com
REGISTRY_CLASSES = [ REGISTRY_CLASSES = [
Geo::ContainerRepositoryRegistry, Geo::ContainerRepositoryRegistry,
......
...@@ -12,7 +12,7 @@ module Geo ...@@ -12,7 +12,7 @@ module Geo
include ExclusiveLeaseGuard include ExclusiveLeaseGuard
feature_category :geo_replication feature_category :geo_replication
tags :exclude_from_kubernetes tags :exclude_from_kubernetes, :exclude_from_gitlab_com
def perform def perform
return unless Gitlab::Geo.secondary? return unless Gitlab::Geo.secondary?
......
...@@ -12,7 +12,7 @@ module Geo ...@@ -12,7 +12,7 @@ module Geo
idempotent! idempotent!
sidekiq_options retry: false, dead: false sidekiq_options retry: false, dead: false
feature_category :geo_replication feature_category :geo_replication
tags :exclude_from_kubernetes tags :exclude_from_kubernetes, :exclude_from_gitlab_com
def perform def perform
Gitlab::Geo.enabled_replicator_classes.each do |replicator_class| Gitlab::Geo.enabled_replicator_classes.each do |replicator_class|
......
...@@ -10,7 +10,7 @@ module Geo ...@@ -10,7 +10,7 @@ module Geo
include ::Gitlab::Geo::LogHelpers include ::Gitlab::Geo::LogHelpers
idempotent! idempotent!
tags :exclude_from_kubernetes tags :exclude_from_kubernetes, :exclude_from_gitlab_com
loggable_arguments 0 loggable_arguments 0
def perform_work(replicable_name) def perform_work(replicable_name)
......
...@@ -16,7 +16,7 @@ module Geo ...@@ -16,7 +16,7 @@ module Geo
idempotent! idempotent!
feature_category :geo_replication feature_category :geo_replication
tags :exclude_from_kubernetes tags :exclude_from_kubernetes, :exclude_from_gitlab_com
def perform def perform
Gitlab::Geo.verification_enabled_replicator_classes.each do |replicator_class| Gitlab::Geo.verification_enabled_replicator_classes.each do |replicator_class|
......
...@@ -9,7 +9,7 @@ module Geo ...@@ -9,7 +9,7 @@ module Geo
idempotent! idempotent!
sidekiq_options retry: false, dead: false sidekiq_options retry: false, dead: false
tags :exclude_from_kubernetes tags :exclude_from_kubernetes, :exclude_from_gitlab_com
loggable_arguments 0 loggable_arguments 0
def perform(replicable_name) def perform(replicable_name)
......
...@@ -9,7 +9,7 @@ module Geo ...@@ -9,7 +9,7 @@ module Geo
sidekiq_options retry: 3, dead: false sidekiq_options retry: 3, dead: false
idempotent! idempotent!
tags :exclude_from_kubernetes tags :exclude_from_kubernetes, :exclude_from_gitlab_com
loggable_arguments 0 loggable_arguments 0
def perform(replicable_name, replicable_id) def perform(replicable_name, replicable_id)
......
...@@ -9,6 +9,7 @@ class LdapGroupSyncWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -9,6 +9,7 @@ class LdapGroupSyncWorker # rubocop:disable Scalability/IdempotentWorker
worker_has_external_dependencies! worker_has_external_dependencies!
weight 2 weight 2
loggable_arguments 0, 1 loggable_arguments 0, 1
tags :exclude_from_gitlab_com
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
def perform(group_ids, provider = nil) def perform(group_ids, provider = nil)
......
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