Skip to content

Commit

Permalink
Merge pull request #62 from christopherwharrop/bugfix/smallj
Browse files Browse the repository at this point in the history
Do not use more than 64 characters to --jobs option of squeue
  • Loading branch information
christopherwharrop authored May 29, 2019
2 parents 0dd987a + 5bf3b88 commit 5f37e33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/workflowmgr/slurmbatchsystem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def refresh_jobqueue(jobids)
errors=""
exit_status=0

if jobids.nil?
if jobids.nil? or jobids.join(',').length>64
queued_jobs,errors,exit_status=WorkflowMgr.run4("squeue -u #{username} -M all -t all -O jobid:40,username:40,numcpus:10,partition:20,submittime:30,starttime:30,endtime:30,priority:30,exit_code:10,state:30,name:200",45)
else
joblist = jobids.join(",")
Expand Down

0 comments on commit 5f37e33

Please sign in to comment.