Auto-refresh and DAG double-trigger issues when toggling pause
#35,220 建立於 2023年10月27日
描述
Apache Airflow version
2.7.2
What happened
Problems that I discovered: 1) If DAG is on pause, then when you go into it and unpause it with the button on the left, the DAG trigger turns on, but auto-update does not turn on 2) if DAG is on pause, and you turn it on with the play button (on the right ), then the dag is launched twice - as if once due to the inclusion of the dag and the second due to the activation of an already enabled dag
What you think should happen instead
After unpause DAG button auto-update should be turned on (the same behavior like after clear task)
After push play button DAG should be triggered only one time
How to reproduce
Steps to Reproduce
- Have a DAG on pause.
- Navigate to the DAG's page in the Airflow UI.
- Toggle the pause off using the trigger DAG button on the left.
- Observe that the DAG is resumed but auto-refresh is not enabled.
- Now, toggle the pause off using the play button on the right.
- Observe that the DAG is triggered twice, seemingly once for the un-pausing and once for the activation of the already resumed DAG.
Operating System
Linux from docker, and linux (rhel)
Versions of Apache Airflow Providers
No response
Deployment
Virtualenv installation
Deployment details
I think it's doesn't connected with deployment. I have the same problems in 2 different envs and also with airflow more earlier versions
Anything else
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct