Skip to content

Commit

Permalink
Merge pull request #29 from beckermr/bugz
Browse files Browse the repository at this point in the history
BUG make sure we have the key
  • Loading branch information
beckermr authored Feb 1, 2023
2 parents 260181c + b635156 commit f1beec0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mattspy/condor_yield.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,8 @@ def _attempt_result(self, cjob, status_code):
condorfile = os.path.join(self.execdir, subid, "condor.sub")
logfile = os.path.join(self.execdir, subid, "log.oe")

del ALL_CONDOR_JOBS[cjob]
if cjob in ALL_CONDOR_JOBS:
del ALL_CONDOR_JOBS[cjob]
if not self.debug:
subprocess.run(
"condor_rm %s; condor_rm -forcex %s" % (cjob, cjob),
Expand Down
3 changes: 2 additions & 1 deletion mattspy/lsf_yield.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@ def _attempt_result(self, cjob, status_code):
jobfile = os.path.join(self.execdir, subid, "run.sh")
logfile = os.path.join(self.execdir, subid, "log.oe")

del ALL_LSF_JOBS[cjob]
if cjob in ALL_LSF_JOBS:
del ALL_LSF_JOBS[cjob]
if not self.debug:
subprocess.run(
"bkill -s 9 %s" % cjob,
Expand Down

0 comments on commit f1beec0

Please sign in to comment.