MCPcopy Index your code
hub / github.com/coder/coder / ShuttingDown

Method ShuttingDown

codersdk/workspaceagents.go:62–69  ·  view source on GitHub ↗

ShuttingDown returns true if the agent is in the process of shutting down or has shut down.

()

Source from the content-addressed store, hash-verified

60// ShuttingDown returns true if the agent is in the process of shutting
61// down or has shut down.
62func (l WorkspaceAgentLifecycle) ShuttingDown() bool {
63 switch l {
64 case WorkspaceAgentLifecycleShuttingDown, WorkspaceAgentLifecycleShutdownTimeout, WorkspaceAgentLifecycleShutdownError, WorkspaceAgentLifecycleOff:
65 return true
66 default:
67 return false
68 }
69}
70
71// WorkspaceAgentLifecycleOrder is the order in which workspace agent
72// lifecycle states are expected to be reported during the lifetime of

Callers 5

WorkspaceAgentFunction · 0.80
taskWatchIsEndedFunction · 0.80
toStatusRowFunction · 0.80
waitMethod · 0.80
handleConnectedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected