2019-04-23 14:27:01 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
|
|
module PhabricatorImport
|
2020-02-19 18:09:10 +00:00
|
|
|
class ImportTasksWorker < BaseWorker # rubocop:disable Scalability/IdempotentWorker
|
2020-01-21 18:07:31 +00:00
|
|
|
include ApplicationWorker
|
2021-04-30 18:10:09 +00:00
|
|
|
|
2021-07-21 12:09:35 +00:00
|
|
|
data_consistency :always
|
|
|
|
|
2021-04-30 18:10:09 +00:00
|
|
|
sidekiq_options retry: 3
|
2020-01-21 18:07:31 +00:00
|
|
|
include ProjectImportOptions # This marks the project as failed after too many tries
|
|
|
|
|
2019-04-23 14:27:01 +00:00
|
|
|
def importer_class
|
|
|
|
Gitlab::PhabricatorImport::Issues::Importer
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|