Class: UpdateHeadPipelineForMergeRequestWorker
- Inherits:
-
Object
- Object
- UpdateHeadPipelineForMergeRequestWorker
- Includes:
- ApplicationWorker, PipelineQueue
- Defined in:
- app/workers/update_head_pipeline_for_merge_request_worker.rb
Constant Summary
Constants included from ApplicationWorker
ApplicationWorker::LOGGING_EXTRA_KEY, ApplicationWorker::SAFE_PUSH_BULK_LIMIT
Constants included from Gitlab::Loggable
Constants included from WorkerAttributes
WorkerAttributes::DEFAULT_DATA_CONSISTENCY, WorkerAttributes::DEFAULT_DEFER_DELAY, WorkerAttributes::NAMESPACE_WEIGHTS, WorkerAttributes::VALID_DATA_CONSISTENCIES, WorkerAttributes::VALID_RESOURCE_BOUNDARIES, WorkerAttributes::VALID_URGENCIES
Instance Method Summary collapse
Methods included from Gitlab::Loggable
Methods included from Gitlab::SidekiqVersioning::Worker
Methods included from WorkerContext
Instance Method Details
#perform(merge_request_id) ⇒ Object
20 21 22 23 24 |
# File 'app/workers/update_head_pipeline_for_merge_request_worker.rb', line 20 def perform(merge_request_id) MergeRequest.find_by_id(merge_request_id).try do |merge_request| merge_request.update_head_pipeline end end |