Class: Gitlab::JiraImport::AdvanceStageWorker
- Inherits:
-
Object
- Object
- Gitlab::JiraImport::AdvanceStageWorker
- 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::AdvanceStageTimeoutError, Import::AdvanceStage::BLOCKING_WAIT_TIME, Import::AdvanceStage::INTERVAL, Import::AdvanceStage::TIMEOUT_DURATION
Constants included from ApplicationWorker
ApplicationWorker::LOGGING_EXTRA_KEY, ApplicationWorker::SAFE_PUSH_BULK_LIMIT
Constants included from Loggable
Constants included from WorkerAttributes
WorkerAttributes::DEFAULT_DATA_CONSISTENCY, WorkerAttributes::DEFAULT_DATA_CONSISTENCY_PER_DB, WorkerAttributes::DEFAULT_DEFER_DELAY, WorkerAttributes::LOAD_BALANCED_DATA_CONSISTENCIES, WorkerAttributes::NAMESPACE_WEIGHTS, WorkerAttributes::VALID_DATA_CONSISTENCIES, WorkerAttributes::VALID_RESOURCE_BOUNDARIES, WorkerAttributes::VALID_URGENCIES
Instance Method Summary collapse
Methods included from Import::AdvanceStage
Methods included from Loggable
Methods included from SidekiqVersioning::Worker
Methods included from WorkerContext
Instance Method Details
#find_import_state(id) ⇒ Object
26 27 28 |
# File 'app/workers/gitlab/jira_import/advance_stage_worker.rb', line 26 def find_import_state(id) JiraImportState.find(id) end |
#find_import_state_jid(project_id) ⇒ Object
22 23 24 |
# File 'app/workers/gitlab/jira_import/advance_stage_worker.rb', line 22 def find_import_state_jid(project_id) JiraImportState.jid_by(project_id: project_id, status: :started) end |