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

@ -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.