dstandish opened a new issue, #32836:
URL: https://github.com/apache/airflow/issues/32836

   ### Body
   
   repro
   ```python
       with DAG(dag_id="example_setup_one_to_many") as dag:
           @setup
           def my_setup():
               print("setting up multiple things")
               return [1, 2, 3]
   
           @task
           def my_work(val):
               print(f"doing work with multiple things: {val}")
               raise ValueError("fail!")
               return val
   
           @teardown
           def my_teardown(val):
               print(f"teardown: {val}")
   
           s = my_setup()
           t = my_teardown.expand(val=s)
           with t:
               w = my_work(s)
       dag.test()
   ```
   
   can verify more easily if you change `test` to return the dag run obj.  then 
call `dr.get_task_instances` and you will see you only get 3 instances -- the 
but there sholud be more by mapping.
   
   @uranusjr 
   
   ### Committer
   
   - [X] I acknowledge that I am a maintainer/committer of the Apache Airflow 
project.


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