Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MinPollInterval param #94

Merged
merged 1 commit into from
Jul 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ 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.
Default: "10s"

Conditions:
CreateRole:
Expand Down Expand Up @@ -202,7 +207,7 @@ Resources:
INSTANCE_BUFFER: !Ref InstanceBuffer
INCLUDE_WAITING: !Ref ScaleOutForWaitingJobs
LAMBDA_TIMEOUT: "50s"
LAMBDA_INTERVAL: "10s"
LAMBDA_INTERVAL: !Ref MinPollInterval
MAX_DESCRIBE_SCALING_ACTIVITIES_PAGES: !Ref MaxDescribeScalingActivitiesPages
Events:
Timer:
Expand Down