dbjobqueue: Add AllRootJobIDs implementation

Related: RHEL-60120
This commit is contained in:
Brian C. Lane 2024-05-30 16:44:14 -07:00 committed by Tomáš Hozza
parent d8285a0b74
commit 5cddc4223d
6 changed files with 64 additions and 14 deletions

View file

@ -307,7 +307,7 @@ func (h *apiHandlers) targetResultToUploadStatus(jobId uuid.UUID, t *target.Targ
// GetComposeList returns a list of the root job UUIDs
func (h *apiHandlers) GetComposeList(ctx echo.Context) error {
jobs, err := h.server.workers.AllRootJobIDs()
jobs, err := h.server.workers.AllRootJobIDs(ctx.Request().Context())
if err != nil {
return HTTPErrorWithInternal(ErrorGettingComposeList, err)
}