apache / apache/airflow

Auto-refresh and DAG double-trigger issues when toggling pause

Open
#35,220 17 comments 0 reactions 0 assignees View on GitHub
area:core good first issue kind:feature
Dominant language
Python
Stars
46.9k
Forks
17.8k
Avg merge
2d 7h
Merged PRs (30d)
484

Description

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

1. Have a DAG on pause.
2. Navigate to the DAG's page in the Airflow UI.
3. Toggle the pause off using the trigger DAG button on the left.
4. Observe that the DAG is resumed but auto-refresh is not enabled.
5. Now, toggle the pause off using the play button on the right.
6. 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

- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the two behaviors in the Airflow UI using the listed pause, trigger, and play-button steps. Trace the UI actions involved in unpausing and triggering a DAG, then verify that unpausing enables auto-refresh and that the play-button flow creates only one trigger.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.