You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/11/17 17:26:26 UTC

[GitHub] [airflow] park-peter commented on issue #25200: DAG Run fails when chaining multiple empty mapped tasks

park-peter commented on issue #25200:
URL: https://github.com/apache/airflow/issues/25200#issuecomment-1318967932

   The issue still persists when more than 2 empty mapped tasks are chained with 2.4.3. Example code:
   ```
   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")
   
       @task
       def say_bye():
           print("Bye")
   
       added_values = add_one.expand(x=[])
       added_more_values = add_one.expand(x=[])
       added_more_more_values = add_one.expand(x=[])
       say_hi() >> say_bye() >> added_values
       added_values >> added_more_values >> added_more_more_values
   ```
   ![image](https://user-images.githubusercontent.com/46539900/202515268-ddd5c797-faf0-4332-ad8f-b6aa5ec087b7.png)
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org