In Slurm, a job submitted with the sbatch command-line tool returns its job id. How do I get the job id using the Perl API?
sbatch
If you submit a job like this:
$resp = $slurm->submit_batch_job($job_desc_msg);
try and look into $resp for a new field named job_id
$resp
job_id
$jobid = $resp->{job_id} if $resp;
that would be set if the command was successful.
If you submit a job like this:
try and look into
$resp
for a new field namedjob_id
that would be set if the command was successful.