Skip to content

Commit

Permalink
Merge pull request #275 from njzjz/njzjz-patch-1
Browse files Browse the repository at this point in the history
should be nj>=task_max, not nj<task_max
  • Loading branch information
amcadmus authored May 27, 2020
2 parents 29415af + 0888c42 commit d09681a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpgen/dispatcher/Slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def _check_sub_limit(self, task_max, **kwarg) :
username = getpass.getuser()
stdin, stdout, stderr = self.context.block_checkcall('squeue -u %s -h' % username)
nj = len(stdout.readlines())
return nj < task_max
return nj >= task_max

def _make_squeue(self,mdata1, res):
ret = ''
Expand Down

0 comments on commit d09681a

Please sign in to comment.