You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "uranusjr (via GitHub)" <gi...@apache.org> on 2026/02/25 06:41:25 UTC
Re: [PR] Skip DB writes for unchanged Dags after serialization [airflow]
uranusjr commented on code in PR #60670:
URL: https://github.com/apache/airflow/pull/60670#discussion_r2851175075
##########
airflow-core/src/airflow/dag_processing/collection.py:
##########
@@ -404,6 +598,16 @@ def update_dag_parsing_results_in_db(
# Retry 'DAG.bulk_write_to_db' & 'SerializedDagModel.bulk_sync_to_db' in case
# of any Operational Errors
# In case of failures, provide_session handles rollback
+ dags_list = list(dags)
Review Comment:
I checked the code, `update_dag_parsing_results_in_db` is actually always called with a list, so let’s just change the function annotation to `Sequence[LazyDeserializedDAG]` instead and remove `dags_list`.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org