Since you can execute a job multiple times, we'll probably need another api call to fetch status for each execution of that job. This could look something like:
GET /v1/{tenant}/jobs/{job_id}/history/{run_number}
{
“run_number": 1,
"job_id": "4dcd8e8f-cdd4-4dc1-8f3c-8242db216388",
"status": "in-progress",
...
}
I'm not sure what statuses we'll actually end up using... We'll need at least:
running or in-progress while the job is running
error if the job failed to complete for some reason
complete if the job has finished