Skip to content

feat: allow bumping workspace deadline #1828

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
May 27, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: cli/ssh: read autostop deadline from latestbuild.Deadline instea…
…d of from workspace TTL
  • Loading branch information
johnstcn committed May 27, 2022
commit f764e617e08934d5428a19e3e68432ee9570b097
2 changes: 1 addition & 1 deletion cli/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ func notifyCondition(ctx context.Context, client *codersdk.Client, workspaceID u
return time.Time{}, nil
}

deadline = ws.LatestBuild.UpdatedAt.Add(*ws.TTL)
deadline = ws.LatestBuild.Deadline
callback = func() {
ttl := deadline.Sub(now)
var title, body string
Expand Down