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 =
90.minutes
EMPTY_EXPORT_STATUS_TIMEOUT =
5.minutes

Constants included from Runner

Runner::MarkedAsFailedError

Instance Method Summary collapse

Methods included from Runner

#run

Instance Method Details

#current_userObject



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

def current_user
  @current_user ||= context.current_user
end

#import_export_configObject



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

def import_export_config
  @import_export_config ||= context.import_export_config
end

#initialize(context) ⇒ Object



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

def initialize(context)
  @context = context
end

#portableObject



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

def portable
  @portable ||= context.portable
end

#trackerObject



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

def tracker
  @tracker ||= context.tracker
end