worker: do not get the distro from the host
Add a `Distro` field to both `Job` structures and send that to the worker.
This commit is contained in:
parent
dff8cb56be
commit
5bce59b979
5 changed files with 20 additions and 13 deletions
|
|
@ -58,6 +58,7 @@ type Compose struct {
|
|||
// A Job contains the information about a compose a worker needs to process it.
|
||||
type Job struct {
|
||||
ComposeID uuid.UUID
|
||||
Distro string
|
||||
Pipeline *pipeline.Pipeline
|
||||
Targets []*target.Target
|
||||
OutputType string
|
||||
|
|
@ -451,6 +452,7 @@ func (s *Store) PushCompose(composeID uuid.UUID, bp *blueprint.Blueprint, checks
|
|||
})
|
||||
s.pendingJobs <- Job{
|
||||
ComposeID: composeID,
|
||||
Distro: s.distro.Name(),
|
||||
Pipeline: pipeline,
|
||||
Targets: targets,
|
||||
OutputType: composeType,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue