This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 3a577e3ce1c Increase waiter delay for ecs run tasks in system tests
(#58338)
3a577e3ce1c is described below
commit 3a577e3ce1c9bc677989529f45e279531f7fc771
Author: Niko Oliveira <[email protected]>
AuthorDate: Sat Nov 15 07:28:34 2025 -0800
Increase waiter delay for ecs run tasks in system tests (#58338)
The default is 6s which is quite aggressive and causes throttling issues
in the test harness. Tests don't need that kind of fidelity and can wait
much longer between attempts to fire the trigger.
---
providers/amazon/tests/system/amazon/aws/example_ecs.py | 2 ++
providers/amazon/tests/system/amazon/aws/example_ecs_fargate.py | 2 ++
2 files changed, 4 insertions(+)
diff --git a/providers/amazon/tests/system/amazon/aws/example_ecs.py
b/providers/amazon/tests/system/amazon/aws/example_ecs.py
index 958b64a9731..65352684dbc 100644
--- a/providers/amazon/tests/system/amazon/aws/example_ecs.py
+++ b/providers/amazon/tests/system/amazon/aws/example_ecs.py
@@ -181,6 +181,8 @@ with DAG(
# [END howto_awslogs_ecs]
)
# [END howto_operator_ecs_run_task]
+ # The default is 6 seconds between checks, which is very aggressive,
setting to 60s to reduce throttling errors.
+ run_task.waiter_delay = 60
# [START howto_operator_ecs_deregister_task_definition]
deregister_task = EcsDeregisterTaskDefinitionOperator(
diff --git a/providers/amazon/tests/system/amazon/aws/example_ecs_fargate.py
b/providers/amazon/tests/system/amazon/aws/example_ecs_fargate.py
index a61536b70d9..1d5504373e3 100644
--- a/providers/amazon/tests/system/amazon/aws/example_ecs_fargate.py
+++ b/providers/amazon/tests/system/amazon/aws/example_ecs_fargate.py
@@ -140,6 +140,8 @@ with DAG(
# EcsRunTaskOperator waits by default, setting as False to test the Sensor
below.
hello_world.wait_for_completion = False
+ # The default is 6 seconds between checks, which is very aggressive,
setting to 60s to reduce throttling errors.
+ hello_world.waiter_delay = 60
# [START howto_sensor_ecs_task_state]
# By default, EcsTaskStateSensor waits until the task has started, but the