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

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

#queuesObject

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.



386
387
388
389
390
391
392
393
394
# File 'lib/ood_core/job/adapters/slurm.rb', line 386

def queues
  info_raw = call('scontrol', 'show', 'part', '-o')

  [].tap do |ret_arr|
    info_raw.each_line do |line|
      ret_arr << str_to_queue_info(line)
    end
  end
end