Method: OodCore::Job::Adapters::Slurm::Batch#squeue_args
- Defined in:
- lib/ood_core/job/adapters/slurm.rb
#squeue_args(id: "", owner: nil, options: []) ⇒ Object
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.
TODO: write some barebones test for this? like 2 options and id or no id
240 241 242 243 244 245 246 |
# File 'lib/ood_core/job/adapters/slurm.rb', line 240 def squeue_args(id: "", owner: nil, options: []) args = ["--all", "--states=all", "--noconvert"] args.concat ["-o", "#{RECORD_SEPARATOR}#{options.join(UNIT_SEPARATOR)}"] args.concat ["-u", owner.to_s] unless owner.to_s.empty? args.concat ["-j", id.to_s] unless id.to_s.empty? args end |