Skip to content

Commit 9e20024

Browse files
committed
Remove intervals
1 parent a5d8268 commit 9e20024

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

coderd/database/queries/workspaces.sql

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -135,21 +135,12 @@ WHERE
135135
-- 'running' states
136136
WHEN @status = 'starting' THEN
137137
latest_build.job_status = 'running' AND
138-
-- TODO: Should we drop the interval? Hung workspaces
139-
-- should still be their last state?
140-
latest_build.updated_at - INTERVAL '30 seconds' < NOW() AND
141138
latest_build.transition = 'start'::workspace_transition
142139
WHEN @status = 'stopping' THEN
143140
latest_build.job_status = 'running' AND
144-
-- TODO: Should we drop the interval? Hung workspaces
145-
-- should still be their last state?
146-
latest_build.updated_at - INTERVAL '30 seconds' < NOW() AND
147141
latest_build.transition = 'stop'::workspace_transition
148142
WHEN @status = 'deleting' THEN
149143
latest_build.job_status = 'running' AND
150-
-- TODO: Should we drop the interval? Hung workspaces
151-
-- should still be their last state?
152-
latest_build.updated_at - INTERVAL '30 seconds' < NOW() AND
153144
latest_build.transition = 'delete'::workspace_transition
154145

155146
-- 'succeeded' states

0 commit comments

Comments
 (0)