Skip to content

Commit 6403e11

Browse files
committed
chore: increase autostop requirement leeway to two hours
1 parent f7cbf5d commit 6403e11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/schedule/autostop.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ const (
1717
// requirement where we skip the requirement and fall back to the next
1818
// scheduled stop. This avoids workspaces being stopped too soon.
1919
//
20-
// E.g. If the workspace is started within an hour of the quiet hours, we
20+
// E.g. If the workspace is started within two hours of the quiet hours, we
2121
// will skip the autostop requirement and use the next scheduled
2222
// stop time instead.
23-
autostopRequirementLeeway = 1 * time.Hour
23+
autostopRequirementLeeway = 2 * time.Hour
2424

2525
// autostopRequirementBuffer is the duration of time we subtract from the
2626
// time when calculating the next scheduled stop time. This avoids issues

0 commit comments

Comments
 (0)