seanmuth opened a new issue, #55074:
URL: https://github.com/apache/airflow/issues/55074

   ### Apache Airflow version
   
   3.0.5
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   Only confirmed on 3.0.4 (since 3.0.5 has been yanked)
   
   When pausing/unpausing a DAG thru the UI, the audit log payload that gets 
recorded contains the same payload for both actions, the pause action is 
incorrect.
   
   in the records below, id 154 is a pause, 155 is an unpause:
   
   ```
   metadata=> select * from log where dag_id = 'example_astronauts' and event = 
'patch_dag';
    id  |             dttm              |       dag_id       | task_id | 
map_index |   event   | logical_date | run_id |           owner            |    
 owner_display_name     |                  extra                  | try_number
   
-----+-------------------------------+--------------------+---------+-----------+-----------+--------------+--------+----------------------------+----------------------------+-----------------------------------------+------------
     16 | 2025-08-15 16:08:31.353289+00 | example_astronauts |         |        
   | patch_dag |              |        | cl1v5y7ti125471f06pr2n19u0 | 
cl1v5y7ti125471f06pr2n19u0 | {"is_paused": false, "method": "PATCH"} |
    154 | 2025-08-29 15:38:02.79487+00  | example_astronauts |         |        
   | patch_dag |              |        | cl1v5y7ti125471f06pr2n19u0 | 
cl1v5y7ti125471f06pr2n19u0 | {"is_paused": false, "method": "PATCH"} |
    155 | 2025-08-29 15:38:38.743214+00 | example_astronauts |         |        
   | patch_dag |              |        | cl1v5y7ti125471f06pr2n19u0 | 
cl1v5y7ti125471f06pr2n19u0 | {"is_paused": false, "method": "PATCH"} |
   (3 rows)
   ```
   
   ### What you think should happen instead?
   
   For pause actions, the payload should be `"is_paused": true`
   
   ### How to reproduce
   
   pause/unpasue dag, look at dag audit log events
   
   ### Operating System
   
   debian 12
   
   ### Versions of Apache Airflow Providers
   
   n/a
   
   ### Deployment
   
   Astronomer
   
   ### Deployment details
   
   Astronomer Runtime 3.0-8 based on Airflow 3.0.4+astro.2
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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