collinmcnulty opened a new issue, #25200: URL: https://github.com/apache/airflow/issues/25200
### Apache Airflow version 2.3.3 (latest released) ### What happened On Kubernetes Executor and Local Executor (others not tested) a significant fraction of the DAG Runs of a DAG that has two consecutive mapped tasks which are are being passed an empty list are marked as failed when all tasks are either succeeding or being skipped.  ### What you think should happen instead The DAG Run should be marked success as it is on LocalExecutor. ### How to reproduce Run the following DAG on Kubernetes Executor or Local Executor. The real world version of this DAG has several mapped tasks that all point to the same list, and that list is frequently empty. I have made a minimal reproducible example. ```py from datetime import datetime from airflow import DAG from airflow.decorators import task with DAG(dag_id="break_mapping", start_date=datetime(2022, 3, 4)) as dag: @task def add_one(x: int): return x + 1 @task def say_hi(): print("Hi") added_values = add_one.expand(x=[]) added_more_values = add_one.expand(x=[]) say_hi() >> added_values added_values >> added_more_values ``` ### Operating System Debian Bullseye ### Versions of Apache Airflow Providers ``` apache-airflow-providers-amazon==1!4.0.0 apache-airflow-providers-cncf-kubernetes==1!4.1.0 apache-airflow-providers-elasticsearch==1!4.0.0 apache-airflow-providers-ftp==1!3.0.0 apache-airflow-providers-google==1!8.1.0 apache-airflow-providers-http==1!3.0.0 apache-airflow-providers-imap==1!3.0.0 apache-airflow-providers-microsoft-azure==1!4.0.0 apache-airflow-providers-mysql==1!3.0.0 apache-airflow-providers-postgres==1!5.0.0 apache-airflow-providers-redis==1!3.0.0 apache-airflow-providers-slack==1!5.0.0 apache-airflow-providers-sqlite==1!3.0.0 apache-airflow-providers-ssh==1!3.0.0 ``` ### Deployment Astronomer ### Deployment details Local was tested on docker compose (from astro-cli) ### Anything else _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
