You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/09/10 20:23:13 UTC

[GitHub] [airflow] kaxil commented on a change in pull request #18120: Handle DAGs with Parsing Errors

kaxil commented on a change in pull request #18120:
URL: https://github.com/apache/airflow/pull/18120#discussion_r706449385



##########
File path: airflow/dag_processing/processor.py
##########
@@ -647,3 +648,17 @@ def process_file(
             self.log.exception("Error logging import errors!")
 
         return len(dagbag.dags), len(dagbag.import_errors)
+
+    def delete_serialized_dags_with_parsing_errors(self, session, file_path):
+        from airflow.models.serialized_dag import SerializedDagModel
+
+        self.log.error("Deleting Serialized DAG(s) in %s file, please fix the parsing errors.", file_path)

Review comment:
       Good point, yes




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