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

Commit38303a2

Browse files
committed
fix enterprise scheduler
1 parent1cf2bbb commit38303a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎enterprise/coderd/provisionerdaemons.go‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ func (*enterpriseTemplateScheduleStore) GetTemplateScheduleOptions(ctx context.C
327327
MaxTTL:time.Duration(tpl.MaxTTL),
328328
FailureTTL:time.Duration(tpl.FailureTTL),
329329
InactivityTTL:time.Duration(tpl.InactivityTTL),
330+
LockedTTL:time.Duration(tpl.LockedTTL),
330331
},nil
331332
}
332333

@@ -335,6 +336,7 @@ func (*enterpriseTemplateScheduleStore) SetTemplateScheduleOptions(ctx context.C
335336
int64(opts.MaxTTL)==tpl.MaxTTL&&
336337
int64(opts.FailureTTL)==tpl.FailureTTL&&
337338
int64(opts.InactivityTTL)==tpl.InactivityTTL&&
339+
int64(opts.LockedTTL)==tpl.LockedTTL&&
338340
opts.UserAutostartEnabled==tpl.AllowUserAutostart&&
339341
opts.UserAutostopEnabled==tpl.AllowUserAutostop {
340342
// Avoid updating the UpdatedAt timestamp if nothing will be changed.
@@ -350,6 +352,7 @@ func (*enterpriseTemplateScheduleStore) SetTemplateScheduleOptions(ctx context.C
350352
MaxTTL:int64(opts.MaxTTL),
351353
FailureTTL:int64(opts.FailureTTL),
352354
InactivityTTL:int64(opts.InactivityTTL),
355+
LockedTTL:int64(opts.LockedTTL),
353356
})
354357
iferr!=nil {
355358
return database.Template{},xerrors.Errorf("update template schedule: %w",err)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp