msumit opened a new pull request #10136:
URL: https://github.com/apache/airflow/pull/10136


   **Background**
   While doing a trigger_dag from UI, DagRun gets created first and then 
webserver starts creating TIs. Meanwhile, Scheduler also picks up the DagRun 
and starts creating the TIs, which results in IntegrityError as the Primary key 
constraint gets violated. This happens when a DAG has a good number of tasks 
(500+). 
   
   Also, changing the TIs array with a set for faster lookups. 


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to