Skip to content

Commit e31f80b

Browse files
committed
fix: Ensure deleted workspaces are not eligible
1 parent f443d0d commit e31f80b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/autobuild/executor/lifecycle_executor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func (e *Executor) runOnce(t time.Time) Stats {
196196
}
197197

198198
func isEligibleForAutoStartStop(ws database.Workspace) bool {
199-
return ws.AutostartSchedule.String != "" || ws.Ttl.Int64 > 0
199+
return !ws.Deleted && (ws.AutostartSchedule.String != "" || ws.Ttl.Int64 > 0)
200200
}
201201

202202
func getNextTransition(

0 commit comments

Comments
 (0)