Skip to main content

Module workspace_stop

Module workspace_stop 

Source
Expand description

What an agent can do about a workspace that is going to stop (App workspace and keep_running).

  • GET /api/v1/app/workspace: whether a stop is pending, when and why (the reason ids and phrases of the workspace:stop event), and what an agent last asked for.
  • POST /api/v1/agent/keep-running { minutes }: ask for the pending stop to be pushed back by 1 to 240 minutes. It is recorded as the agent that asked (agent:<id>); srv hands the request to its registered external host with the next activity answer, and the host decides whether to honour it. With no stop pending there is nothing to put back and it is refused. Both work for host and container agents alike.

Structsยง

KeepRunningRequest ๐Ÿ”’

Functionsยง

handle_keep_running ๐Ÿ”’
POST /api/v1/agent/keep-running.
handle_workspace ๐Ÿ”’
GET /api/v1/app/workspace.
refusal ๐Ÿ”’
workspace_view ๐Ÿ”’
The workspaceโ€™s stop as an agent reads it.