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

   ### Apache Airflow version
   
   3.0.0
   
   ### If "Other Airflow 2 version" selected, which one?
   
   main branch
   
   ### What happened?
   
   I ran this dag:
   
   ```
   from airflow.sdk import dag, task
   
   
   @dag
   def example_simplest_dag():
       @task
       def my_task():
           return [1, 2, 3, 4, 5, 6, 7]
   
       @task(
           max_active_tis_per_dag=1,
       )
       def map_me_but_slowly(a):
           import time
   
           time.sleep(10)
           print(a + 1)
   
       map_me_but_slowly.expand(a=my_task())
   
   
   example_simplest_dag()
   ```
   
   And it ran several of the mapped task instances concurrently:
   
   
![Image](https://github.com/user-attachments/assets/60320cb8-94f4-4662-9dea-c23de08e86a3)
   
   When running a DAG making API calls in a dynamic task I keep getting rate 
limited, this is how I noticed 😅 
   
   ### What you think should happen instead?
   
   Only one mapped task instance should run at a time, as is the behavior in 
2.10
   
   ### How to reproduce
   
   1. Run the DAG above
   2. Look at the concurrently running instances of `map_me_but_slowly`
   
   ### Operating System
   
   MacOS
   
   ### Versions of Apache Airflow Providers
   
   breeze all
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   breeze
   
   ### 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]

Reply via email to