alab_management.device_rpc_status module#

Probe whether the Device Manager RPC queue has a consumer (lab hardware ready).

device_rpc_queue_name()[source]#

Return {lab}.device_rpc (or {lab}_sim.device_rpc in sim).

Return type:

str

dismiss_lab_starting_user_input()[source]#

Fulfill the lab-starting notice once the lab is ready.

Return type:

None

ensure_lab_starting_user_input()[source]#

Create at most one pending maintenance notice while the lab is not ready.

Return type:

None

get_device_rpc_status(*, force=False)[source]#

Return cached device_rpc readiness (RabbitMQ passive declare).

Return type:

dict[str, Any]

get_lab_readiness(*, force=False)[source]#

Combined lab_ready payload for status API and gates.

Return type:

dict[str, Any]

lab_ready_label(device_rpc=None)[source]#

Operator-facing short label for AppBar / banners.

Return type:

str

require_lab_ready_or_503()[source]#

Return a Flask (body, status) tuple when not ready, else None.