jason810496 commented on code in PR #55116:
URL: https://github.com/apache/airflow/pull/55116#discussion_r2313919116


##########
airflow-core/src/airflow/api_fastapi/logging/decorators.py:
##########
@@ -98,6 +98,9 @@ async def log_action(
             request_body = {}
             masked_body_json = {}
 
+        if request_body.get("dry_run"):

Review Comment:
   Yeah, something like the following should be enough
   
   ```python
   # still need to check the real route naming
   
   if request_body.get("dry_run") and clear_dag_run in {"clear_dag_run", 
"post_clear_task_instances"}:
       return
   ```
   
   Additionally, it would be great to add some test cases to check the scenario 
Bugar described, thanks!



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