Module: WorkerAttributes
- Extended by:
- ActiveSupport::Concern
- Includes:
- Gitlab::ClassAttributes
- Included in:
- ApplicationWorker
- 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
- VALID_DATA_CONSISTENCIES =
Ordered in increasing restrictiveness
[:delayed, :sticky, :always].freeze
- LOAD_BALANCED_DATA_CONSISTENCIES =
[:delayed, :sticky].freeze
- DEFAULT_DATA_CONSISTENCY =
:always
- DEFAULT_DATA_CONSISTENCY_PER_DB =
Gitlab::Database::LoadBalancing.each_load_balancer.to_h do |lb| [lb.name, DEFAULT_DATA_CONSISTENCY] end.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
- DEFAULT_DEFER_DELAY =
5.seconds