This is an automated email from the ASF dual-hosted git repository.
onikolas 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 06fbabb26e8 Fix lambda executor max attempts config (#60666)
06fbabb26e8 is described below
commit 06fbabb26e826fe2fc79399333b8bff503b458c1
Author: Niko Oliveira <[email protected]>
AuthorDate: Fri Jan 16 16:52:38 2026 -0800
Fix lambda executor max attempts config (#60666)
* Fix lambda executor max attempts config
The documentation and even most of the code properly refers to the
config as `max_invoke_attempts` but the config name itself (which was
read from Airflow config/env) was using the wrong config name
(`max_run_task_attempts` which comes from the ECS executor)
* Update changelog for the breaking change
---
providers/amazon/docs/changelog.rst | 1 +
providers/amazon/provider.yaml | 2 +-
.../src/airflow/providers/amazon/aws/executors/aws_lambda/utils.py | 2 +-
providers/amazon/src/airflow/providers/amazon/get_provider_info.py | 2 +-
4 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/providers/amazon/docs/changelog.rst
b/providers/amazon/docs/changelog.rst
index ac39007d20c..a600f7951e6 100644
--- a/providers/amazon/docs/changelog.rst
+++ b/providers/amazon/docs/changelog.rst
@@ -25,6 +25,7 @@
Changelog
---------
+* ``Rename ''max_run_task_attempts'' to ''max_invoke_attempts'' in AWS Lambda
Executor (#60666)``
9.20.0
......
diff --git a/providers/amazon/provider.yaml b/providers/amazon/provider.yaml
index 4c11640d279..c8575f85b2c 100644
--- a/providers/amazon/provider.yaml
+++ b/providers/amazon/provider.yaml
@@ -1074,7 +1074,7 @@ config:
type: boolean
example: "True"
default: "True"
- max_run_task_attempts:
+ max_invoke_attempts:
description: |
The maximum number of times the Lambda Executor should attempt to
start an Airflow task.
version_added: "9.9.0"
diff --git
a/providers/amazon/src/airflow/providers/amazon/aws/executors/aws_lambda/utils.py
b/providers/amazon/src/airflow/providers/amazon/aws/executors/aws_lambda/utils.py
index 483b81508db..370f070344f 100644
---
a/providers/amazon/src/airflow/providers/amazon/aws/executors/aws_lambda/utils.py
+++
b/providers/amazon/src/airflow/providers/amazon/aws/executors/aws_lambda/utils.py
@@ -59,7 +59,7 @@ class AllLambdaConfigKeys(InvokeLambdaKwargsConfigKeys):
AWS_CONN_ID = "conn_id"
CHECK_HEALTH_ON_STARTUP = "check_health_on_startup"
- MAX_INVOKE_ATTEMPTS = "max_run_task_attempts"
+ MAX_INVOKE_ATTEMPTS = "max_invoke_attempts"
REGION_NAME = "region_name"
QUEUE_URL = "queue_url"
DLQ_URL = "dead_letter_queue_url"
diff --git a/providers/amazon/src/airflow/providers/amazon/get_provider_info.py
b/providers/amazon/src/airflow/providers/amazon/get_provider_info.py
index a85c6668b94..cf6ac17ad65 100644
--- a/providers/amazon/src/airflow/providers/amazon/get_provider_info.py
+++ b/providers/amazon/src/airflow/providers/amazon/get_provider_info.py
@@ -1207,7 +1207,7 @@ def get_provider_info():
"example": "True",
"default": "True",
},
- "max_run_task_attempts": {
+ "max_invoke_attempts": {
"description": "The maximum number of times the Lambda
Executor should attempt to start an Airflow task.\n",
"version_added": "9.9.0",
"type": "integer",