Skip to content

Commit 5d0212a

Browse files
committed
Remove TODOs in favor of issues
1 parent b362811 commit 5d0212a

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

agent/agent.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,14 +1318,6 @@ func (a *agent) Close() error {
13181318
ctx := context.Background()
13191319
a.setLifecycle(ctx, codersdk.WorkspaceAgentLifecycleShuttingDown)
13201320

1321-
// Close services before running shutdown script.
1322-
// TODO(mafredri): Gracefully shutdown:
1323-
// - Cancel startup script, if running
1324-
// - Close active SSH server connections
1325-
// - Close processes (send HUP, wait, etc.)
1326-
1327-
// TODO(mafredri): Only run shutdown script if the agent is 'ready'?
1328-
13291321
lifecycleState := codersdk.WorkspaceAgentLifecycleOff
13301322
if metadata, ok := a.metadata.Load().(agentsdk.Metadata); ok && metadata.ShutdownScript != "" {
13311323
scriptDone := make(chan error, 1)
@@ -1365,11 +1357,6 @@ func (a *agent) Close() error {
13651357
// cancellation will stop the report loop.
13661358
a.setLifecycle(ctx, lifecycleState)
13671359

1368-
if lifecycleState != codersdk.WorkspaceAgentLifecycleOff {
1369-
// TODO(mafredri): Delay shutdown, ensure debugging is possible.
1370-
_ = false
1371-
}
1372-
13731360
// Wait for the lifecycle to be reported, but don't wait forever so
13741361
// that we don't break user expectations.
13751362
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy