{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://velox.dev/schema/methods/queue.stop.schema.json", "title": "queue.stop", "description": "Stop admitting new tasks from a queue. Tasks already running are paused when pauseRunning is true, and otherwise allowed to finish \u2014 the difference between 'stop the queue' and 'stop everything', which IDM conflates and users trip over.", "x-privileged": true, "x-transports": [ "uds" ], "x-deadlineMs": 5000, "x-errors": [ -32003 ], "type": "object", "properties": { "params": { "type": "object", "additionalProperties": false, "required": [ "queueId" ], "properties": { "queueId": { "type": "string" }, "pauseRunning": { "type": "boolean" } } }, "result": { "type": "object", "additionalProperties": false, "required": [ "queue", "pausedTaskIds" ], "properties": { "queue": { "$ref": "https://velox.dev/schema/types/Queue.schema.json" }, "pausedTaskIds": { "type": "array", "items": { "type": "string", "format": "uuid" } } } } } }