Create monitor and wait
monitor_runCreate a monitor and block until its condition is satisfied, combining setup and waiting in one call.
Instructions
Convenience: monitor_create + monitor_wait in one blocking call. Creates the monitor and pauses until it settles (or wait_timeout_seconds elapses, in which case the monitor keeps running and you can monitor_wait on the returned id later).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Human-readable label, e.g. 'slurm job 12345'. | |
| poll | No | Override the probe schedule. Event-driven conditions (file, log) still react immediately via filesystem events; this tunes the periodic safety check behind them. | |
| condition | Yes | ||
| timeout_seconds | No | Monitor moves to state 'timeout' if unresolved after this long. Default 24h. | |
| wait_timeout_seconds | No |