ephraimbuddy commented on code in PR #28998:
URL: https://github.com/apache/airflow/pull/28998#discussion_r1073259935


##########
airflow/api_connexion/endpoints/dag_run_endpoint.py:
##########
@@ -319,6 +320,27 @@ def post_dag_run(*, dag_id: str, session: Session = 
NEW_SESSION) -> APIResponse:
                 dag_hash=get_airflow_app().dag_bag.dags_hash.get(dag_id),
                 session=session,
             )
+            from airflow.models.log import Log

Review Comment:
   Instead of this, there's `action_logging` decorator you should use, see 
https://github.com/apache/airflow/blob/5d84b59554c93fd22e92b46a1061b40b899a8dec/airflow/api_connexion/endpoints/connection_endpoint.py#L51



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