ukaea / piezo

1 stars 0 forks source link

Catch key errors on getting job status #79

Closed oliver-tarrant-tessella closed 5 years ago

oliver-tarrant-tessella commented 5 years ago

Bug fix to return "UNKNOWN" rather than 500 error when job status is not available. Solve by using catch key error on jobstatus as in getjobs. Solves issue when request is called too soon after submitting job.

Acceptance criteria

jobstatus returns 200 response with message "UNKNOWN" when called very soon after the job is submitted. This bug occurs during system tests and when the kubernetes cluster is handling a large number of job submission at once.

Test Scenario

robert-clegg-tessella commented 5 years ago

Covered by system test Status Of Job Immediately After Submission is Unknown