Skip to content

Commit bbaa057

Browse files
authored
fix(agent): log correct script timeout for startup script (#9190)
1 parent 4c133e7 commit bbaa057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/agent.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ func (a *agent) run(ctx context.Context) error {
654654
select {
655655
case err = <-scriptDone:
656656
case <-timeout:
657-
a.logger.Warn(ctx, "script timed out", slog.F("lifecycle", "startup"), slog.F("timeout", manifest.ShutdownScriptTimeout))
657+
a.logger.Warn(ctx, "script timed out", slog.F("lifecycle", "startup"), slog.F("timeout", manifest.StartupScriptTimeout))
658658
a.setLifecycle(ctx, codersdk.WorkspaceAgentLifecycleStartTimeout)
659659
err = <-scriptDone // The script can still complete after a timeout.
660660
}

0 commit comments

Comments
 (0)