ukaea / piezo

1 stars 0 forks source link

Feature/check status of job#46 #57

Closed oliver-tarrant-tessella closed 5 years ago

oliver-tarrant-tessella commented 5 years ago

New jobstatus handler to get the status of a spark application running through Piezo web app. Takes arguments of spark_job and namespace. If the job is present then it returns a 200 with body {"status": "success", "data": {"message": "Status"}} Where Status can be Running, Completed or Failed. When not present Piezo web app will return a 404 with a message saying `Kubernetes error when trying to get status of spark job "X" in namespace "Y": Not Found' Due to an error with the kubernetes API can't use the python client to call status of job directly. Instead rely on getting the job and extracting the status from the body.

Stories covered:

46

To test:

Run unit tests, Run integration tests

robert-clegg-tessella commented 5 years ago

Could you also please take a look at writing some system tests for this?