File tree 1 file changed +0
-9
lines changed
1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -135,21 +135,12 @@ WHERE
135
135
-- 'running' states
136
136
WHEN @status = ' starting' THEN
137
137
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
141
138
latest_build .transition = ' start' ::workspace_transition
142
139
WHEN @status = ' stopping' THEN
143
140
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
147
141
latest_build .transition = ' stop' ::workspace_transition
148
142
WHEN @status = ' deleting' THEN
149
143
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
153
144
latest_build .transition = ' delete' ::workspace_transition
154
145
155
146
-- 'succeeded' states
You can’t perform that action at this time.
0 commit comments