@@ -327,6 +327,7 @@ func (*enterpriseTemplateScheduleStore) GetTemplateScheduleOptions(ctx context.C
327
327
MaxTTL :time .Duration (tpl .MaxTTL ),
328
328
FailureTTL :time .Duration (tpl .FailureTTL ),
329
329
InactivityTTL :time .Duration (tpl .InactivityTTL ),
330
+ LockedTTL :time .Duration (tpl .LockedTTL ),
330
331
},nil
331
332
}
332
333
@@ -335,6 +336,7 @@ func (*enterpriseTemplateScheduleStore) SetTemplateScheduleOptions(ctx context.C
335
336
int64 (opts .MaxTTL )== tpl .MaxTTL &&
336
337
int64 (opts .FailureTTL )== tpl .FailureTTL &&
337
338
int64 (opts .InactivityTTL )== tpl .InactivityTTL &&
339
+ int64 (opts .LockedTTL )== tpl .LockedTTL &&
338
340
opts .UserAutostartEnabled == tpl .AllowUserAutostart &&
339
341
opts .UserAutostopEnabled == tpl .AllowUserAutostop {
340
342
// Avoid updating the UpdatedAt timestamp if nothing will be changed.
@@ -350,6 +352,7 @@ func (*enterpriseTemplateScheduleStore) SetTemplateScheduleOptions(ctx context.C
350
352
MaxTTL :int64 (opts .MaxTTL ),
351
353
FailureTTL :int64 (opts .FailureTTL ),
352
354
InactivityTTL :int64 (opts .InactivityTTL ),
355
+ LockedTTL :int64 (opts .LockedTTL ),
353
356
})
354
357
if err != nil {
355
358
return database.Template {},xerrors .Errorf ("update template schedule: %w" ,err )