From e4a55884e44e4d30ec02197359e774ff03df4392 Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Tue, 25 Jul 2023 11:50:06 +1000 Subject: [PATCH] Add MinPollInterval param --- template.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/template.yaml b/template.yaml index db1f457..c2519aa 100644 --- a/template.yaml +++ b/template.yaml @@ -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: @@ -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: