Skip to content

Commit ef20680

Browse files
committed
Skip over jobs that are None
1 parent 2b5cf7b commit ef20680

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

jobManager.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,16 @@ def __manage(self):
6767

6868
if id:
6969
job = self.jobQueue.get(id)
70+
71+
# job could no longer exist if it was completed by someone else
72+
if job == None:
73+
continue
74+
7075
if not job.accessKey and Config.REUSE_VMS:
7176
id, vm = self.jobQueue.getNextPendingJobReuse(id)
7277
job = self.jobQueue.get(id)
78+
if job == None:
79+
continue
7380

7481
try:
7582
# Mark the job assigned

0 commit comments

Comments
 (0)