jedcunningham commented on a change in pull request #17759:
URL: https://github.com/apache/airflow/pull/17759#discussion_r694041319
##########
File path: airflow/dag_processing/processor.py
##########
@@ -513,7 +513,12 @@ def update_import_errors(session: Session, dagbag: DagBag)
-> None:
"""
# Clear the errors of the processed files
for dagbag_file in dagbag.file_last_changed:
-
session.query(errors.ImportError).filter(errors.ImportError.filename ==
dagbag_file).delete()
+ if dagbag_file.endswith(".zip"):
Review comment:
Ah, thanks! I think the easiest fix is to just use `startswith` for all
of them.
--
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]