Module: WorkerAttributes

Extended by:
ActiveSupport::Concern
Includes:
Gitlab::ClassAttributes
Included in:
ApplicationWorker, Gitlab::PhabricatorImport::BaseWorker, HashedStorage::BaseWorker
Defined in:
app/workers/concerns/worker_attributes.rb

Constant Summary collapse

VALID_RESOURCE_BOUNDARIES =

Resource boundaries that workers can declare through the `resource_boundary` attribute

[:memory, :cpu, :unknown].freeze
VALID_URGENCIES =

Urgencies that workers can declare through the `urgencies` attribute

[:high, :low, :throttled].freeze
NAMESPACE_WEIGHTS =
{
  auto_devops: 2,
  auto_merge: 3,
  chaos: 2,
  deployment: 3,
  mail_scheduler: 2,
  notifications: 2,
  pipeline_cache: 3,
  pipeline_creation: 4,
  pipeline_default: 3,
  pipeline_hooks: 2,
  pipeline_processing: 5,

  # EE-specific
  epics: 2,
  incident_management: 2,
  security_scans: 2
}.stringify_keys.freeze