Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcc0e161

Browse files
committed
wire up executor to coderd
1 parent4bf344b commitcc0e161

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎cli/server.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import (
4343
"github.com/coder/coder/coderd/database/databasefake"
4444
"github.com/coder/coder/coderd/devtunnel"
4545
"github.com/coder/coder/coderd/gitsshkey"
46+
"github.com/coder/coder/coderd/lifecycle/executor"
4647
"github.com/coder/coder/coderd/turnconn"
4748
"github.com/coder/coder/codersdk"
4849
"github.com/coder/coder/cryptorand"
@@ -343,6 +344,11 @@ func server() *cobra.Command {
343344
returnxerrors.Errorf("notify systemd: %w",err)
344345
}
345346

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+
346352
// Because the graceful shutdown includes cleaning up workspaces in dev mode, we're
347353
// going to make it harder to accidentally skip the graceful shutdown by hitting ctrl+c
348354
// two or more times. So the stopChan is unlimited in size and we don't call

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp