Skip to content

Commit 4bd2f81

Browse files
docs: improve doc comments
1 parent 5b0b1f9 commit 4bd2f81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

provider/workspace_preset.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,9 @@ See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for a complete
212212
}
213213
}
214214

215-
// validatePrebuildsCronSpec ensures that the minute field is set to *
215+
// validatePrebuildsCronSpec ensures that the minute field is set to *.
216+
// This is required because autoscaling schedules represent continuous time ranges,
217+
// and we want the schedule to cover entire hours rather than specific minute intervals.
216218
func validatePrebuildsCronSpec(spec string) error {
217219
parts := strings.Fields(spec)
218220
if len(parts) != 5 {

0 commit comments

Comments
 (0)