vincbeck commented on code in PR #27892:
URL: https://github.com/apache/airflow/pull/27892#discussion_r1035000234


##########
airflow/dag_processing/processor.py:
##########
@@ -522,16 +522,20 @@ def manage_slas(self, dag: DAG, session: Session = None) 
-> None:
             session.commit()
 
     @staticmethod
-    def update_import_errors(session: Session, dagbag: DagBag) -> None:
+    @internal_api_call("dag_processing.processor.update_import_errors")

Review Comment:
   You can, indeed, generate the string 
`dag_processing.processor.update_import_errors` from the `func` parameter. You 
can get it with `f"{func.__module__}.{func.__name__}"`. That way, no need to 
have a parameter to `internal_api_call` function



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

Reply via email to