ephraimbuddy commented on code in PR #58242:
URL: https://github.com/apache/airflow/pull/58242#discussion_r2536620268
##########
airflow-core/src/airflow/dag_processing/collection.py:
##########
@@ -423,16 +429,17 @@ def update_dag_parsing_results_in_db(
import_errors.update(serialize_errors)
# Record import errors into the ORM - we don't retry on this one as it's
not as critical that it works
try:
- # TODO: This won't clear errors for files that exist that no longer
contain DAGs. Do we need to pass
- # in the list of file parsed?
+ if files_parsed is not None:
+ all_files_parsed = files_parsed
+ else:
+ # Fallback: infer from dags and import_errors
Review Comment:
Mostly for tests. I didn't want to update tests
--
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]