Method: OodCore::Job::Adapters::Slurm::Batch#initialize

Defined in:
lib/ood_core/job/adapters/slurm.rb

#initialize(cluster: nil, bin: nil, conf: nil, bin_overrides: {}, submit_host: "", strict_host_checking: true, id: 'unknown') ⇒ Batch

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Batch.

Parameters:

  • cluster (#to_s, nil) (defaults to: nil)

    the cluster name

  • conf (#to_s, nil) (defaults to: nil)

    path to the slurm conf

  • bin (#to_s) (defaults to: nil)

    path to slurm installation binaries

  • bin_overrides (#to_h) (defaults to: {})

    a hash of bin ovverides to be used in job

  • submit_host (#to_s) (defaults to: "")

    Submits the job on a login node via ssh

  • strict_host_checking (Bool) (defaults to: true)

    Whether to use strict host checking when ssh to submit_host



111
112
113
114
115
116
117
118
119
# File 'lib/ood_core/job/adapters/slurm.rb', line 111

def initialize(cluster: nil, bin: nil, conf: nil, bin_overrides: {}, submit_host: "", strict_host_checking: true, id: 'unknown')
  @cluster              = cluster && cluster.to_s
  @conf                 = conf    && Pathname.new(conf.to_s)
  @bin                  = Pathname.new(bin.to_s)
  @bin_overrides        = bin_overrides
  @submit_host          = submit_host.to_s
  @strict_host_checking = strict_host_checking
  @id                   = id.to_s
end