You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -388,6 +389,25 @@ This is particularly useful in cases where ECS or a previous task definition app
388
389
wait-for-service-stability: true
389
390
```
390
391
392
+
## Polling Configuration
393
+
394
+
By default when waiting for service stability or task completion, the AWS SDK uses exponential backoff which can result in delays up to 120 seconds between polling attempts. This means even after your service becomes stable, you may wait up to 2 minutes before the next poll detects it.
395
+
396
+
To use consistent polling intervals instead, set `wait-max-delay-seconds`:
This configuration polls every 15 seconds instead of using exponential backoff.
410
+
391
411
## Retries
392
412
393
413
To automatically retry a failed task definition deployment, use the max-retries input. This controls how many times the action will attempt to register and deploy the task definition before failing.
Copy file name to clipboardExpand all lines: action.yml
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,9 @@ inputs:
22
22
wait-for-minutes:
23
23
description: 'How long to wait for the ECS service to reach stable state, in minutes (default: 30 minutes, max: 6 hours). For CodeDeploy deployments, any wait time configured in the CodeDeploy deployment group will be added to this value.'
24
24
required: false
25
+
wait-max-delay-seconds:
26
+
description: 'Maximum delay in seconds between polling attempts when waiting for service stability or task completion. If not set, AWS SDK uses exponential backoff up to 120 seconds. Set to 15 for consistent 15-second polling intervals.'
27
+
required: false
25
28
codedeploy-appspec:
26
29
description: "The path to the AWS CodeDeploy AppSpec file, if the ECS service uses the CODE_DEPLOY deployment controller. Will default to 'appspec.yaml'."
0 commit comments