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:
parent
d781b8de6d
commit
87c0462a33
4 changed files with 80 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue