kaxil commented on a change in pull request #19367:
URL: https://github.com/apache/airflow/pull/19367#discussion_r743972540
##########
File path: airflow/dag_processing/processor.py
##########
@@ -533,6 +533,10 @@ def update_import_errors(session: Session, dagbag: DagBag)
-> None:
# Add the errors of the processed files
for filename, stacktrace in dagbag.import_errors.items():
+ dag_model = session.query(DagModel).filter(DagModel.fileloc ==
filename).first()
Review comment:
```suggestion
session.query(DagModel).filter(DagModel.fileloc ==
filename).update({"has_import_errors": True})
```
might be better _I think_
--
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]