shubham-pyc commented on PR #47943:
URL: https://github.com/apache/airflow/pull/47943#issuecomment-2742893726

   @jedcunningham i looked into the code for[reparse a file 
feature](https://github.com/apache/airflow/blob/2500dcf20d2782d16da53ee857c0aab21bfdfbf2/airflow/api_fastapi/core_api/routes/public/dag_parsing.py#L47)
   
   For this feature if we fetch all the file locations of bundles and create a 
batch insert DagPriorityParsingRequest. Will it work? Since this would create a 
parsing results for all of our bundles.
   
   `file_locations = 
session.scalars(select(DagModel.fileloc).where(DagModel.name.in_(list(bundles_to_process))))
           # Process each bundle
           parsing_requests = [DagPriorityParsingRequest(fileloc=fileloc) for 
fileloc in file_locations]
           
           session.add_all(parsing_requests)`
           
     lemme know your thoughts


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