jobqueue: expose dependencies when querying status
The status of a job may depend on the status of its dependenices, as we do not repeat for instance the failed state in each dependent job. Return also the list of dependencies so these can be queried too.
This commit is contained in:
parent
9adae8a3a7
commit
c777a18df0
6 changed files with 29 additions and 21 deletions
|
|
@ -216,7 +216,7 @@ func (server *Server) ComposeStatus(w http.ResponseWriter, r *http.Request, id s
|
|||
}
|
||||
|
||||
var result worker.OSBuildJobResult
|
||||
status, err := server.workers.JobStatus(jobId, &result)
|
||||
status, _, err := server.workers.JobStatus(jobId, &result)
|
||||
if err != nil {
|
||||
http.Error(w, fmt.Sprintf("Job %s not found: %s", id, err), http.StatusNotFound)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue