From 0888c42d13ebef763b21a941d8a65aff591d3b46 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Mon, 25 May 2020 03:59:42 -0400 Subject: [PATCH] should be >= --- dpgen/dispatcher/Slurm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpgen/dispatcher/Slurm.py b/dpgen/dispatcher/Slurm.py index ad1709d2a..ff4acd063 100644 --- a/dpgen/dispatcher/Slurm.py +++ b/dpgen/dispatcher/Slurm.py @@ -185,7 +185,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 = ''