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
|
|
@ -95,6 +95,9 @@ type JobQueue interface {
|
|||
|
||||
// Deletes the worker
|
||||
DeleteWorker(workerID uuid.UUID) error
|
||||
|
||||
// AllRootJobIDs returns a list of top level job UUIDs that the worker knows about
|
||||
AllRootJobIDs() ([]uuid.UUID, error)
|
||||
}
|
||||
|
||||
// SimpleLogger provides a structured logging methods for the jobqueue library.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue