worker: require workers to pass their architecture

Jobs are scheduled with type "osbuild:{arch}", to ensure that workers
only get jobs with the right architecture assigned.
This commit is contained in:
Lars Karlitski 2020-09-20 20:16:18 +02:00 committed by Tom Gundersen
parent 44c2144994
commit 9008a1defc
10 changed files with 59 additions and 19 deletions

View file

@ -17,6 +17,7 @@ type Error struct {
// RequestJobJSONBody defines parameters for RequestJob.
type RequestJobJSONBody struct {
Arch string `json:"arch"`
Types []string `json:"types"`
}