Skip to content

Commit 897a51e

Browse files
committed
Add early return
1 parent 6a57630 commit 897a51e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

coderd/autobuild/executor/lifecycle_executor.go

+1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ func (e *Executor) runOnce(t time.Time) Stats {
104104
eligibleWorkspaces, err := e.db.GetWorkspacesAutostart(e.ctx)
105105
if err != nil {
106106
e.log.Error(e.ctx, "get eligible workspaces for autostart or autostop", slog.Error(err))
107+
return stats
107108
}
108109

109110
// We only use errgroup here for convenience of API, not for early

0 commit comments

Comments
 (0)