worker: require workers to declare job types they accept

For now, workers must send `[ "osbuild" ]`.
This commit is contained in:
Lars Karlitski 2020-09-20 17:40:18 +02:00 committed by Tom Gundersen
parent d3c99b8e93
commit ba6a480e32
5 changed files with 21 additions and 4 deletions

View file

@ -83,6 +83,15 @@ paths:
schema:
type: object
additionalProperties: false
properties:
types:
type: array
items:
type: string
enum:
- osbuild
required:
- types
description: ''
description: Requests a job. This operation blocks until a job is available.
parameters: []