ShuttingDown returns true if the agent is in the process of shutting down or has shut down.
()
| 60 | // ShuttingDown returns true if the agent is in the process of shutting |
| 61 | // down or has shut down. |
| 62 | func (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 |
no outgoing calls
no test coverage detected