Skip to content

Commit febe4ac

Browse files
committed
docs: describe how the Agent Relay reaper confirms a startup failure
1 parent a664ba8 commit febe4ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/agent-relay/setup.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ The reaper can act 30 seconds or more after a workspace reaches one of thes
420420

421421
The startup grace is 15 minutes by default and starts when the latest build is created.
422422
For failed or timed-out startup scripts, Agent Relay v0.16.0 and later don't wait for the startup grace.
423-
The reaper acts on the second sweep in a row that reads `pending` from a new status sample after the agent reports `start_error` or `start_timeout`.
423+
After the agent reports `start_error` or `start_timeout`, the reaper waits for two `pending` reads of the worker status, the second from a newer status sample than the first.
424424
Refer to [Start the worker after workspace setup](#start-the-worker-after-workspace-setup).
425425
If you set a [reap delay](./configuration.md#--reap-delay), the reaper waits for it before it deletes a workspace or reports a failure, except in the cases that the option's reference lists.
426426
If a delete fails three times in a row, the reaper stops and leaves the workspace for you to remove.

0 commit comments

Comments
 (0)