Skip to content

Commit

Permalink
Merge pull request #102 from buildkite/pdp-1417-buildkite-agent-scale…
Browse files Browse the repository at this point in the history
…r-event-schedule-rate-parameter-should
  • Loading branch information
triarius authored Sep 13, 2023
2 parents 4794fdf + e8d2d80 commit f0536eb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ Parameters:
Type: String
Default: ''

EventScheduleRate:
Description: How often the Event Schedule is triggered (in minutes)
EventSchedulePeriod:
Description: How often the Event Schedule is triggered. Should be an expression with units, e.g. "30 seconds", "1 minute", "5 minutes".
Type: String
Default: "1"
Default: "1 minute"

AgentsPerInstance:
Description: ""
Expand Down Expand Up @@ -89,7 +89,7 @@ Parameters:
Type: Number
Description: The number of pages to retrive for DescribeScalingActivity. Negative numbers mean unlimited.
Default: "-1"

MinPollInterval:
Type: String
Description: Minimum time interval between polls. If a larger interval is provided by Buildkite, that is used instead.
Expand Down Expand Up @@ -213,7 +213,7 @@ Resources:
Timer:
Type: Schedule
Properties:
Schedule: !Sub "rate(${EventScheduleRate} minute)"
Schedule: !Sub "rate(${EventSchedulePeriod})"

# This mirrors the group that would be created by the lambda, but enforces
# a retention period and also ensures it's removed when the stack is removed
Expand Down

0 comments on commit f0536eb

Please sign in to comment.