We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent4bf344b commitcc0e161Copy full SHA for cc0e161
cli/server.go
@@ -43,6 +43,7 @@ import (
43
"github.com/coder/coder/coderd/database/databasefake"
44
"github.com/coder/coder/coderd/devtunnel"
45
"github.com/coder/coder/coderd/gitsshkey"
46
+"github.com/coder/coder/coderd/lifecycle/executor"
47
"github.com/coder/coder/coderd/turnconn"
48
"github.com/coder/coder/codersdk"
49
"github.com/coder/coder/cryptorand"
@@ -343,6 +344,11 @@ func server() *cobra.Command {
343
344
returnxerrors.Errorf("notify systemd: %w",err)
345
}
346
347
+lifecyclePoller:=time.NewTicker(30*time.Second)
348
+deferlifecyclePoller.Stop()
349
+lifecycleExecutor:=executor.New(cmd.Context(),options.Database,logger,lifecyclePoller.C)
350
+golifecycleExecutor.Run()
351
+
352
// Because the graceful shutdown includes cleaning up workspaces in dev mode, we're
353
// going to make it harder to accidentally skip the graceful shutdown by hitting ctrl+c
354
// two or more times. So the stopChan is unlimited in size and we don't call