Module: BulkImports::Pipeline

Defined Under Namespace

Modules: Runner Classes: Context, ExtractedData

Constant Summary collapse

NotAllowedError =
Class.new(StandardError)
ExpiredError =
Class.new(StandardError)
FailedError =
Class.new(StandardError)
CACHE_KEY_EXPIRATION =
2.hours
NDJSON_EXPORT_TIMEOUT =
30.minutes

Constants included from Runner

Runner::MarkedAsFailedError

Instance Method Summary collapse

Methods included from Runner

#run

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Instance Method Details

#current_userObject


33
34
35
# File 'lib/bulk_imports/pipeline.rb', line 33

def current_user
  @current_user ||= context.current_user
end

#import_export_configObject


29
30
31
# File 'lib/bulk_imports/pipeline.rb', line 29

def import_export_config
  @import_export_config ||= context.import_export_config
end

#initialize(context) ⇒ Object


17
18
19
# File 'lib/bulk_imports/pipeline.rb', line 17

def initialize(context)
  @context = context
end

#portableObject


25
26
27
# File 'lib/bulk_imports/pipeline.rb', line 25

def portable
  @portable ||= context.portable
end

#trackerObject


21
22
23
# File 'lib/bulk_imports/pipeline.rb', line 21

def tracker
  @tracker ||= context.tracker
end