Module: Eco::API::Session::Batch::Launcher

Includes:
Benchmarking, ModeSize, Options, Retry, StatusHandling
Included in:
Eco::API::Session::Batch
Defined in:
lib/eco/api/session/batch/launcher.rb,
lib/eco/api/session/batch/launcher/retry.rb,
lib/eco/api/session/batch/launcher/options.rb,
lib/eco/api/session/batch/launcher/mode_size.rb,
lib/eco/api/session/batch/launcher/benchmarking.rb,
lib/eco/api/session/batch/launcher/valid_methods.rb,
lib/eco/api/session/batch/launcher/status_handling.rb

Defined Under Namespace

Modules: Benchmarking, ModeSize, Options, Retry, StatusHandling, ValidMethods

Constant Summary collapse

RETRY_ON =
[
  Ecoportal::API::Errors::TimeOut,
  Ecoportal::API::Errors::StartTimeOut
].freeze

Constants included from Retry

Retry::ALLOWED_RETRIES

Constants included from ModeSize

ModeSize::DEFAULT_BATCH_SIZE, ModeSize::DEFAULT_JOB_SIZE, ModeSize::MIN_JOB_SIZE

Class Method Summary collapse

Methods included from ModeSize

#batch_size

Class Method Details

.included(base) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/eco/api/session/batch/launcher.rb', line 13

def self.included(base)
  unless base <= Eco::API::Common::Session::BaseSession
    msg  = 'To be included only in Eco::API::Common::Session::BaseSession. '
    msg << "Tried on '#{base}'"
    raise msg
  end

  super

  base.send(:include, ValidMethods)
end