jobqueue: Add AllRootJobIDs function to jobqueue

This lists the root job UUIDs (the jobs with no dependants).
Currently only implemented by fsjobqueue. The function for
dbjobqueue currently returns nil.

Related: RHEL-60120
This commit is contained in:
Brian C. Lane 2024-04-10 11:47:41 -07:00 committed by Brian C. Lane
parent d781b8de6d
commit 87c0462a33
4 changed files with 80 additions and 1 deletions

View file

@ -903,3 +903,10 @@ func (q *DBJobQueue) jobDependents(ctx context.Context, conn connection, id uuid
return dependents, nil
}
// AllRootJobIDs returns a list of top level job UUIDs that the worker knows about
func (q *DBJobQueue) AllRootJobIDs() ([]uuid.UUID, error) {
// TODO write this
return nil, nil
}