You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Number of DAGs in tabs not match with number of records
Data statistic on dag table
all1
is_active2
is_paused3
113
55
58
1select count(*) from dag 2select count(*) from dag where not is_paused 3select count(*) from dag where is_paused
Record number on the page, count manually
all
is_active
is_paused
52
48
4
What you think should happen instead
The number on tabs should follow number of record
all1
is_active2
is_paused3
52
48
4
Proposed Solution
The query should add filter active
1select count(*) from dag where is_active 2select count(*) from dag where not is_paused and is_active 3select count(*) from dag where is_paused and is_active
Add new DAGs
a. filename: hello_world.py
b. dagId: hello_world1
Go to DAGs page (/home)
a. check number of DAGs in tab and take note
b. count records of DAGs for each tab and take note
Change the dagId
a. dagId: hello_world2
b. wait for 5 seconds
c. dagId: hello_world3
d. wait for 5 seconds
e. dagId: hello_world4
f. wait for 5 seconds
g. dagId: hello_world5
Go to DAGs page (/home)
a. check number of DAGs in tab and take note
b. count records of DAGs for each tab and take note
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
Thank you for the report . Yes. We know and Yes, there are few issues about it already and Yes. It's already fixed and wll be released in 2.7.1 See #33912#33698 and fix in #33778.
Apache Airflow version
2.7.0
What happened
Number of DAGs in tabs not match with number of records
Data statistic on dag table
1
select count(*) from dag
2
select count(*) from dag where not is_paused
3
select count(*) from dag where is_paused
Record number on the page, count manually
What you think should happen instead
The number on tabs should follow number of record
Proposed Solution
The query should add filter
active
1
select count(*) from dag where is_active
2
select count(*) from dag where not is_paused and is_active
3
select count(*) from dag where is_paused and is_active
Code need to change
File path: https://github.com/apache/airflow/blob/main/airflow/www/views.py
Class:
Airflow(AirflowBaseView)
Function:
def index(self)
How to reproduce
Requirement
Steps
a. filename:
hello_world.py
b. dagId:
hello_world1
/home
)a. check number of DAGs in tab and take note
b. count records of DAGs for each tab and take note
a. dagId:
hello_world2
b. wait for 5 seconds
c. dagId:
hello_world3
d. wait for 5 seconds
e. dagId:
hello_world4
f. wait for 5 seconds
g. dagId:
hello_world5
/home
)a. check number of DAGs in tab and take note
b. count records of DAGs for each tab and take note
Operating System
Linux
Versions of Apache Airflow Providers
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
Deploy on kubernetes cluster using helm chart
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: