Skip to main content

Module app_workspace

Module app_workspace 

Source
Expand description

App with workspace and keep_running: an agent’s view of its workspace’s pending stop, and its request to put it back (srv’s GET /api/v1/app/workspace and POST /api/v1/agent/keep-running). Both work for host and container agents. The request is recorded as the agent; whether to honour it is up to the workspace’s timer.

Constants§

MAX_MINUTES 🔒
The most one request may ask for, minutes (srv refuses more).

Functions§

describe 🔒
The answer of workspace in words: “This workspace stops at 14:32 UTC (in 12 minutes) because nothing has happened for 50 minutes.”
keep_running 🔒
keep_running with minutes: ask for the pending stop to be put back.
workspace 🔒
workspace: whether a stop is pending, when and why, and what an agent last asked for.