cloudapi: Return the compose status of all root compose jobs

This returns the status using the same structure as it does for
requesting individual statuses for the jobs.

Related: RHEL-60120
This commit is contained in:
Brian C. Lane 2024-04-05 16:55:35 -07:00 committed by Brian C. Lane
parent 24b939d4c7
commit 325a018c75
4 changed files with 72 additions and 0 deletions

View file

@ -348,6 +348,11 @@ func (s *Server) JobDependencyChainErrors(id uuid.UUID) (*clienterrors.Error, er
return nil, nil
}
// AllRootJobIDs returns a list of top level job UUIDs that the worker knows about
func (s *Server) AllRootJobIDs() ([]uuid.UUID, error) {
return s.jobs.AllRootJobIDs()
}
func (s *Server) OSBuildJobInfo(id uuid.UUID, result *OSBuildJobResult) (*JobInfo, error) {
jobInfo, err := s.jobInfo(id, result)
if err != nil {