Skip to content

Commit a1222d0

Browse files
committed
Remove TODOs in favor of issues
1 parent 2ef0ab3 commit a1222d0

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
@@ -1223,14 +1223,6 @@ func (a *agent) Close() error {
12231223
ctx := context.Background()
12241224
a.setLifecycle(ctx, codersdk.WorkspaceAgentLifecycleShuttingDown)
12251225

1226-
// Close services before running shutdown script.
1227-
// TODO(mafredri): Gracefully shutdown:
1228-
// - Cancel startup script, if running
1229-
// - Close active SSH server connections
1230-
// - Close processes (send HUP, wait, etc.)
1231-
1232-
// TODO(mafredri): Only run shutdown script if the agent is 'ready'?
1233-
12341226
lifecycleState := codersdk.WorkspaceAgentLifecycleOff
12351227
if metadata, ok := a.metadata.Load().(agentsdk.Metadata); ok && metadata.ShutdownScript != "" {
12361228
scriptDone := make(chan error, 1)
@@ -1270,11 +1262,6 @@ func (a *agent) Close() error {
12701262
// cancellation will stop the report loop.
12711263
a.setLifecycle(ctx, lifecycleState)
12721264

1273-
if lifecycleState != codersdk.WorkspaceAgentLifecycleOff {
1274-
// TODO(mafredri): Delay shutdown, ensure debugging is possible.
1275-
_ = false
1276-
}
1277-
12781265
// Wait for the lifecycle to be reported, but don't wait forever so
12791266
// that we don't break user expectations.
12801267
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