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.
New
jobstatus
handler to get the status of a spark application running through Piezo web app. Takes arguments ofspark_job
andnamespace
. If the job is present then it returns a 200 with body {"status": "success", "data": {"message": "Status"}} WhereStatus
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