mirror of
https://github.com/ivan-usov-org/bec.git
synced 2025-04-21 10:10:02 +02:00
feat(endpoint): added stop_all_devices endpoint
This commit is contained in:
parent
9db0c03bec
commit
13beb51a52
@ -451,6 +451,21 @@ class MessageEndpoints:
|
|||||||
message_op=MessageOp.SEND,
|
message_op=MessageOp.SEND,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def stop_all_devices() -> EndpointInfo:
|
||||||
|
"""
|
||||||
|
Endpoint for stopping all devices. This endpoint is used to publish a message
|
||||||
|
to stop all devices and is used by the scan server's scan queue if a scan queue
|
||||||
|
modification was requested and accepted and requires to stop all devices.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
EndpointInfo: Endpoint for stopping all devices.
|
||||||
|
"""
|
||||||
|
endpoint = "internal/queue/stop_all_devices"
|
||||||
|
return EndpointInfo(
|
||||||
|
endpoint=endpoint, message_type=messages.VariableMessage, message_op=MessageOp.SEND
|
||||||
|
)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def scan_queue_status() -> EndpointInfo:
|
def scan_queue_status() -> EndpointInfo:
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user