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:
parent
24b939d4c7
commit
325a018c75
4 changed files with 72 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue