Skip to content

Commit 791b6c0

Browse files
committed
Use linear backoff on the SDK v3 Waiter due to failure rate for short running tasks
1 parent e10b4f0 commit 791b6c0

File tree

4 files changed

+1964
-544
lines changed

4 files changed

+1964
-544
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ Will pass the following command to the container on the AWS ECS Fargate task:
104104
| task-wait-until-stopped | Whether to wait for the task to stop before finishing the action. If set to false, the action will finish immediately after the task reaches the `RUNNING` state (fire and forget). | `false` | true |
105105
| task-start-max-wait-time | How long to wait for the task to start (i.e. reach the `RUNNING` state) in seconds. If the task does not start within this time, the pipeline will fail. | `false` | 120 |
106106
| task-stopped-max-wait-time | How long to wait for the task to stop (i.e. reach the `STOPPED` state) in seconds. The task will not be canceled after this time, the pipeline will just be marked as failed. | `false` | 300 |
107+
| task-check-state-delay | How long to wait between each AWS API call to check the current state of the task in seconds. This is useful to avoid running into AWS rate limits. **However**, setting this too high might cause the Action to miss the time-window your task is in the "RUNNING" state (if you task is very short lived) and can cause the action to fail. | `false` | 6 |
107108
<!-- action-docs-inputs -->
108109

109110
<!-- action-docs-outputs -->

action.yml

+8
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ inputs:
8181
required: false
8282
default: 300
8383

84+
task-check-state-delay:
85+
description: >-
86+
How long to wait between each AWS API call to check the current state of the task in seconds. This is useful to
87+
avoid running into AWS rate limits. **However**, setting this too high might cause the Action to miss the time-window
88+
your task is in the "RUNNING" state (if you task is very short lived) and can cause the action to fail.
89+
required: false
90+
default: 6
91+
8492
outputs:
8593
task-arn:
8694
description: 'The full ARN for the task that was ran.'

0 commit comments

Comments
 (0)