Skip to content

Commit

Permalink
Correctly handle bad downloading issue in the scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoruiDong committed May 10, 2020
1 parent 2f44a88 commit fef7fc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arc/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from arc import parser
from arc.job.job import Job
from arc.exceptions import (InputError,
JobError,
SanitizationError,
SchedulerError,
SpeciesError,
Expand Down Expand Up @@ -796,7 +797,7 @@ def end_job(self, job, label, job_name):
"""
try:
job.determine_job_status() # also downloads output file
except IOError:
except (IOError, JobError):
if job.job_type not in ['orbitals']:
logger.warning('Tried to determine status of job {0}, but it seems like the job never ran.'
' Re-running job.'.format(job.job_name))
Expand Down

0 comments on commit fef7fc3

Please sign in to comment.