8000 refactor: workspace autostop_schedule -> ttl by johnstcn · Pull Request #1578 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

refactor: workspace autostop_schedule -> ttl #1578

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 15 commits into from
May 19, 2022
Merged
Prev Previous commit
Next Next commit
Update site/src/components/WorkspaceSchedule/WorkspaceSchedule.tsx
  • Loading branch information
greyscaled authored May 19, 2022
commit d00fefbd6eb19d52bab434487b4fcbef8c822d1f
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const Language = {
const updatedAt = dayjs(latest.updated_at)
const deadline = updatedAt.add(workspace.ttl / 1_000_000, "ms")
if (now.isAfter(deadline)) {
return "WORKING ON THIS"
return "workspace is shutting down now"
} else {
return now.to(deadline)
}
Expand Down
0