Skip to content

Commit

Permalink
don't overwrite reason
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult committed Oct 19, 2024
1 parent f4ab2bd commit 4420089
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions iceprod/server/plugins/condor.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,9 +766,9 @@ async def finish(self, job_id: CondorJobId, success: bool = True, resources: dic
break
if future is None and stderr and stderr.is_file():
# check stderr for reset reason
reason = stderr.open().read()
data = stderr.open().read()
for text in RESET_STDERR_REASONS:
if text.lower() in reason.lower():
if text.lower() in data.lower():
future = self.task_reset(job, stats=stats, reason=reason)
break
if future is None:
Expand Down Expand Up @@ -861,6 +861,8 @@ async def check(self):
if job.submit_dir == path:
self.submitter.remove(job_id, reason='exceeded max queue time')

logger.info('finished cross-check')

async def check_submit_dir(self):
"""
Return directory paths that should be cleaned up.
Expand Down

0 comments on commit 4420089

Please sign in to comment.