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

Includes:
Options
Included in:
Eco::API::Session::Batch::Launcher, Size
Defined in:
lib/eco/api/session/batch/launcher/mode.rb

Instance Method Summary collapse

Instance Method Details

#batch_mode(opts = options) ⇒ Symbol

Returns the batch mode to run.

Returns:

  • (Symbol)

    the batch mode to run



10
11
12
# File 'lib/eco/api/session/batch/launcher/mode.rb', line 10

def batch_mode(opts = options)
  opts.dig(:workflow, :batch, :mode) || :batch
end

#job_mode?(opts = options) ⇒ Boolean

Returns are we running in :job mode?.

Returns:

  • (Boolean)

    are we running in :job mode?



15
16
17
# File 'lib/eco/api/session/batch/launcher/mode.rb', line 15

def job_mode?(opts = options)
  batch_mode(opts) == :job
end