Class: Gitlab::JiraImport::AdvanceStageWorker

Inherits:
Object
  • Object
show all
Includes:
ApplicationWorker, Import::AdvanceStage, QueueOptions
Defined in:
app/workers/gitlab/jira_import/advance_stage_worker.rb

Overview

rubocop:disable Scalability/IdempotentWorker

Constant Summary collapse

STAGES =

The known importer stages and their corresponding Sidekiq workers.

{
  labels: Gitlab::JiraImport::Stage::ImportLabelsWorker,
  issues: Gitlab::JiraImport::Stage::ImportIssuesWorker,
  attachments: Gitlab::JiraImport::Stage::ImportAttachmentsWorker,
  notes: Gitlab::JiraImport::Stage::ImportNotesWorker,
  finish: Gitlab::JiraImport::Stage::FinishImportWorker
}.freeze

Constants included from Import::AdvanceStage

Import::AdvanceStage::BLOCKING_WAIT_TIME, Import::AdvanceStage::INTERVAL

Constants included from ApplicationWorker

ApplicationWorker::LOGGING_EXTRA_KEY

Constants included from WorkerAttributes

WorkerAttributes::NAMESPACE_WEIGHTS, WorkerAttributes::VALID_RESOURCE_BOUNDARIES, WorkerAttributes::VALID_URGENCIES

Instance Method Summary collapse

Methods included from Import::AdvanceStage

#perform, #wait_for_jobs

Methods included from SidekiqVersioning::Worker

#job_version

Methods included from WorkerContext

#with_context

Instance Method Details

#find_import_state(project_id) ⇒ Object


19
20
21
# File 'app/workers/gitlab/jira_import/advance_stage_worker.rb', line 19

def find_import_state(project_id)
  JiraImportState.jid_by(project_id: project_id, status: :started)
end