File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ import (
43
43
"github.com/coder/coder/coderd/database/databasefake"
44
44
"github.com/coder/coder/coderd/devtunnel"
45
45
"github.com/coder/coder/coderd/gitsshkey"
46
+ "github.com/coder/coder/coderd/lifecycle/executor"
46
47
"github.com/coder/coder/coderd/turnconn"
47
48
"github.com/coder/coder/codersdk"
48
49
"github.com/coder/coder/cryptorand"
@@ -343,6 +344,11 @@ func server() *cobra.Command {
343
344
return xerrors .Errorf ("notify systemd: %w" , err )
344
345
}
345
346
347
+ lifecyclePoller := time .NewTicker (30 * time .Second )
348
+ defer lifecyclePoller .Stop ()
349
+ lifecycleExecutor := executor .New (cmd .Context (), options .Database , logger , lifecyclePoller .C )
350
+ go lifecycleExecutor .Run ()
351
+
346
352
// Because the graceful shutdown includes cleaning up workspaces in dev mode, we're
347
353
// going to make it harder to accidentally skip the graceful shutdown by hitting ctrl+c
348
354
// two or more times. So the stopChan is unlimited in size and we don't call
You can’t perform that action at this time.
0 commit comments