Skip to content

Commit

Permalink
make sure the job actually completed, and didn't get held or removed
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult committed Dec 4, 2024
1 parent 7e0d2bd commit 98a2c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iceprod/server/plugins/condor.py
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ async def check_history(self):
if time_ is not None:
resources['time'] = time_/3600.

success = extra.get('ExitCode', 1) == 0
success = extra.get('JobStatus') == 4 and extra.get('ExitCode', 1) == 0
job.status = JobStatus.COMPLETED if success else JobStatus.FAILED

stats = {}
Expand Down

0 comments on commit 98a2c40

Please sign in to comment.