Answer the build queue as data too, so a check can say how far back it waits
The queue verb answered only a table, so nothing outside the controller could say an ask's place in the queue. It now asks its command for JSON: each ask's state, kind, repository, commit, machine, since and position among the waiting, with the table carried beside it and answered as the verb's output, both written from one read. A repository's password, if one were ever written into it, is left out of what is shown. novox/hq issue 455
This commit is contained in:
@@ -333,7 +333,9 @@ var ControllerVerbs = []Verb{
|
||||
// The build queue, controlled by hand (novox/hq ADR 0219). Every verb that drops an ask leaves a
|
||||
// failed outcome for it, so a plan waiting on it fails visibly instead of hanging.
|
||||
{Name: "queue", Description: "Every ask in the build queue: waiting, in flight (on which machine, for how long), " +
|
||||
"and dead (handed out as often as allowed and never settled) — each with its id, repository, path, ref and when it was asked.",
|
||||
"and dead (handed out as often as allowed and never settled) — each with its id, repository, path, ref and when it was asked. " +
|
||||
"Answers the table as text and, as data, each ask's state, kind (check or build), repository, commit, machine, since " +
|
||||
"and position among the waiting (novox/hq issue 455).",
|
||||
Input: schema(nil, nil)},
|
||||
{Name: "cancel", Description: "Drop one waiting or dead ask from the build queue; its outcome is recorded failed, " +
|
||||
"cancelled by hand, and a plan that asked for it fails. One in flight is refused: `kill` ends it where it runs.",
|
||||
|
||||
Reference in New Issue
Block a user