jobqueue: add channel to workers
Stores the channel alongside the worker.
This commit is contained in:
parent
ede798ae6c
commit
1b4935c325
9 changed files with 46 additions and 26 deletions
|
|
@ -43,7 +43,7 @@ func TestComposeStatusFromLegacyError(t *testing.T) {
|
|||
t.Fatalf("error serializing osbuild manifest: %v", err)
|
||||
}
|
||||
|
||||
_, err = api.workers.RegisterWorker(arch.Name())
|
||||
_, err = api.workers.RegisterWorker("", arch.Name())
|
||||
require.NoError(t, err)
|
||||
jobId, err := api.workers.EnqueueOSBuild(arch.Name(), &worker.OSBuildJob{Manifest: mf}, "")
|
||||
require.NoError(t, err)
|
||||
|
|
@ -99,7 +99,7 @@ func TestComposeStatusFromJobError(t *testing.T) {
|
|||
t.Fatalf("error serializing osbuild manifest: %v", err)
|
||||
}
|
||||
|
||||
_, err = api.workers.RegisterWorker(arch.Name())
|
||||
_, err = api.workers.RegisterWorker("", arch.Name())
|
||||
require.NoError(t, err)
|
||||
jobId, err := api.workers.EnqueueOSBuild(arch.Name(), &worker.OSBuildJob{Manifest: mf}, "")
|
||||
require.NoError(t, err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue