monitor
¶
broadcast_updates
async
¶
This function refreshes the CURRENT_JOB and broadcasts to listeners simultaneously.
When clients connect, they join the broadcast to recieve updates.
Source code in src/mujoco_mojo/utils/layers/dojo/routers/monitor.py
get_monitor
async
¶
Serves the initial monitor frame.
Source code in src/mujoco_mojo/utils/layers/dojo/routers/monitor.py
get_custom_chime
async
¶
Serves the configured local chime file (dojo.chime_source, when it's a Path) so the browser can play it without direct filesystem access.
Source code in src/mujoco_mojo/utils/layers/dojo/routers/monitor.py
get_job_status
async
¶
Python
get_job_status() -> dict
Returns aggregate job status for the monitor and trial viewer pages.
Source code in src/mujoco_mojo/utils/layers/dojo/routers/monitor.py
get_trial_status
async
¶
Python
get_trial_status(trial_num: int) -> TrialStatus
Returns step-level execution details for a specific trial.
Source code in src/mujoco_mojo/utils/layers/dojo/routers/monitor.py
status_stream
async
¶
Streams job loading progress to the monitor via SSE.