Add simple osbuild-worker
It doesn't actually build anything yet, but talks to the queue API.
This commit is contained in:
parent
0bdd3a5c89
commit
cfe89eaed5
5 changed files with 125 additions and 2 deletions
|
|
@ -108,8 +108,8 @@ func (api *API) addJobHandler(writer http.ResponseWriter, request *http.Request,
|
|||
nextJob := <-api.pendingJobs
|
||||
api.jobStore.UpdateJob(id, nextJob)
|
||||
|
||||
writer.WriteHeader(http.StatusCreated)
|
||||
json.NewEncoder(writer).Encode(replyBody{nextJob.Pipeline, nextJob.Targets})
|
||||
|
||||
}
|
||||
|
||||
func (api *API) updateJobHandler(writer http.ResponseWriter, request *http.Request, params httprouter.Params) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue