Skip to content

Commit 38303a2

Browse files
committed
fix enterprise scheduler
1 parent 1cf2bbb commit 38303a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

enterprise/coderd/provisionerdaemons.go

+3
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
if err != nil {
355358
return database.Template{}, xerrors.Errorf("update template schedule: %w", err)

0 commit comments

Comments
 (0)