update_hold
The orchestrator's update hold: a quiet period before a desktop app update.
The update_hold_runtime flow holds every background DAG slot on the machine
until the desktop app has installed its update, and background runs give way to
it while it is live. The orchestrator submits it and reads it back through
bitfount.runtimes.update_hold.control. See bitfount.runtimes.update_hold.flow.
Module
Submodules
- bitfount.runtimes.update_hold.control - Submit, read back and end the orchestrator's update hold.
- bitfount.runtimes.update_hold.flow - Prefect flow that keeps background DAG work off the machine for an update.
Functions
update_hold_runtime
async def update_hold_runtime( max_wait_seconds: float, max_ready_seconds: float,) ‑> prefect.client.schemas.objects.State:Hold every background DAG slot on this machine until released.
Arguments
max_wait_seconds: How long running work may take to give the machine up before the hold lets go of it again.max_ready_seconds: How long the hold holds the machine once it has it, for an install that has not happened.
Returns
A Completed state named for how the hold ended, or Cancelled for a
hold that started too long after it was asked for.