Skip to content

Commit

Permalink
Merge pull request #69 from felix5572/master
Browse files Browse the repository at this point in the history
update dpcloudserver error message
  • Loading branch information
felix5572 committed Jun 24, 2021
2 parents bb87476 + 2b9be96 commit a38b617
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dpdispatcher/dp_cloud_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ def check_status(self, job):
if job.job_id == '':
return JobStatus.unsubmitted
dlog.debug(f"debug: check_status; job.job_id:{job.job_id}; job.job_hash:{job.job_hash}")
dp_job_status = api.get_tasks(job.job_id)[0]["status"]
try:
dp_job_status = api.get_tasks(job.job_id)[0]["status"]
except IndexError as e:
raise RuntimeError(f"cannot find job information in dpcloudserver's database for job {job.job_id}")
job_state = self.map_dp_job_state(dp_job_status)
return job_state

Expand Down

0 comments on commit a38b617

Please sign in to comment.