Open szeswee opened 1 month ago
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
able to reproduce it also on the main branch
Hi @romsharon98 , @potiuk , Can I work on this issue? Please assign it to me.Thanks.
Apache Airflow version
Other Airflow 2 version (please specify below)
If "Other Airflow 2 version" selected, which one?
2.9.2
What happened?
The Airflow docs state the following behaviour when encountering zero-length maps when using Dynamic Task Mapping:
The abovementioned behaviour is indeed correctly observed when a mapped task is first executed as part of a new DAG run (i.e.
try_number = 1
).However, on subsequent tries (i.e.
try_number > 1
), the mapped task will instead throw the following exception:To emphasise, this issue only occurs when a zero-length map is encountered on
try_number > 1
. Whentry_number = 1
and there exists a zero-length map, this issue does not occur.What you think should happen instead?
There shouldn't be an exception raised. Looking at the logs above, it seems to be a bug with the handling of mapped tasks as it relates to sending alerts to emails.
How to reproduce
Create the following DAG with this code:
dtm_failure
DAG.Clear > Clear existing tasks
to retry the entire DAG run.Operating System
Debian 11
Versions of Apache Airflow Providers
No response
Deployment
Other Docker-based deployment
Deployment details
Anything else?
No response
Are you willing to submit PR?
Code of Conduct