diff --git a/cocluto/ClusterController/Job.py b/cocluto/ClusterController/Job.py index fa69d70..ae2b27a 100644 --- a/cocluto/ClusterController/Job.py +++ b/cocluto/ClusterController/Job.py @@ -29,7 +29,8 @@ class JobId: """ MAX_NUM_JOBS_IN_ARRAY = 1000000 def __init__( self, iJobId, iJobArrayElementId = None): - assert iJobArrayElementId <= self.MAX_NUM_JOBS_IN_ARRAY + if iJobArrayElementId is not None: + assert iJobArrayElementId <= self.MAX_NUM_JOBS_IN_ARRAY self.m_iJobId = iJobId self.m_iJobArrayElementId = iJobArrayElementId # None if this identifier does not refer to a job array element