pkg/jobqueue: add arch to worker
This commit is contained in:
parent
8a8b1406fb
commit
ac854b7cc8
4 changed files with 28 additions and 16 deletions
|
|
@ -88,7 +88,7 @@ type JobQueue interface {
|
|||
UpdateWorkerStatus(workerID uuid.UUID) error
|
||||
|
||||
// Get a list of workers which haven't been updated in the specified time frame
|
||||
Workers(olderThan time.Duration) ([]uuid.UUID, error)
|
||||
Workers(olderThan time.Duration) ([]Worker, error)
|
||||
|
||||
// Deletes the worker
|
||||
DeleteWorker(workerID uuid.UUID) error
|
||||
|
|
@ -115,3 +115,8 @@ var (
|
|||
ErrActiveJobs = errors.New("worker has active jobs associated with it")
|
||||
ErrWorkerNotExist = errors.New("worker does not exist")
|
||||
)
|
||||
|
||||
type Worker struct {
|
||||
ID uuid.UUID
|
||||
Arch string
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue