OAPI: Allow explicit SocketIO subscription to "all jobs"

When the web interface is showing the Workers list, it should no longer
get updates about jobs. A new subscription type `allJobs` is added, and
the `uuid` field of the subscription is no longer mandatory.
This commit is contained in:
Sybren A. Stüvel 2022-05-31 14:58:09 +02:00
parent cd35e3a5cb
commit 221ed17fa2

View File

@ -1385,7 +1385,7 @@ components:
type: string type: string
format: uuid format: uuid
description: UUID of the thing to subscribe to / unsubscribe from. description: UUID of the thing to subscribe to / unsubscribe from.
required: [op, type, uuid] required: [op, type]
SocketIOSubscriptionOperation: SocketIOSubscriptionOperation:
type: string type: string
@ -1393,7 +1393,7 @@ components:
SocketIOSubscriptionType: SocketIOSubscriptionType:
type: string type: string
enum: [job, tasklog] enum: [allJobs, job, tasklog]
description: What kind of thing to subscribe to / unsubscribe from. description: What kind of thing to subscribe to / unsubscribe from.
# Worker Management # Worker Management