daemon_adapter
daemon_adapter
¶
StateBackend adapter that reads job state from the running daemon via IPC.
Wraps DaemonClient to satisfy the StateBackend ABC so the dashboard
can consume live daemon data without touching the filesystem directly.
All write methods raise NotImplementedError — the dashboard is read-only.
Classes¶
DaemonStateAdapter
¶
Bases: StateBackend
Read-only StateBackend backed by live daemon IPC calls.
Parameters¶
client:
An already-configured DaemonClient instance.
Source code in src/marianne/dashboard/state/daemon_adapter.py
Functions¶
load
async
¶
Load state for a job from the daemon.
Returns None if the job is not found (DaemonError).
Source code in src/marianne/dashboard/state/daemon_adapter.py
list_jobs
async
¶
List all jobs by querying the daemon roster then enriching each.