collinmcnulty commented on issue #25200:
URL: https://github.com/apache/airflow/issues/25200#issuecomment-1218902002

   For anyone else experiencing this, there is a workaround to put a sleep 
between your two sets of mapped tasks.
   
   ```py
   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(trigger_rule="all_done")
       def sleep_task():
           sleep(5)
   
       added_values = add_one.expand(x=[])
       added_more_values = add_one.expand(x=[])
       say_hi() >> added_values
       added_values >> sleep_task() >> added_more_values
   ```


-- 
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]

Reply via email to