-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gantt chart flickering and constant rescaling #42215
Comments
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. |
Same here, occurs after upgrading from 2.8.2 to 2.10.1 |
still same issue on 2.10.2 version |
nice video in duplicated issue: width of |
Hi @adamgorkaextbi, are there any specific steps to reproduce this? I'm looking into this but can't seem to reproduce the issue on my end. Thanks! |
@dannyl1u |
I have checked and |
task details and Gantt chart both use reacts useGridData() to get data |
@adamgorkaextbi @Shlomixg |
@dannyl1u I check one more time airflow schema after migration I guess we will try manually change this column type in our DB and let you know if this fix issue. |
If you are running airflow in + timezone EUROPE/ASIA (USA timezones are not affected with flickering, but still data has incorrect type db) TODO: |
Also getting this issue on 2.10.3. Happens on seemingly random DAGs with the gantt UI timescales constantly flickering. |
To me, this happens when I have multiple retries for tasks. |
this work for me : in paris ALTER TABLE dag_run ALTER COLUMN queued_at TYPE timestamptz USING queued_at AT TIME ZONE 'Europe/Paris'; |
Airflow Version: v2.10.0 Screen.Recording.2024-11-28.at.3.29.11.PM.mov |
Same problem on 2.10.3, but as @leetdavid said, it occurs only when there is a retried task. We're using MySQL for the database, so it doesn't seem to be just a timezone issue. For me, it seems more related to the fact that the Gantt graph attempts to show task executions present in task_instance for a run_id, but within the period between the queued_at and end_date of the dag_run. (If I manually change queued_at to encompass all task_instance, the flickering stops.) The minimum date for the Gantt graph shouldn't be queued_at but rather the minimum start_date of task_instance |
The closed pull request above should solve the problem but since I don't understand what to do the validation error message... basically this part of the airflow/www/static/js/dag/details/gantt/index.tsx file
is triggered when startDate/endDate and set dagRun?.queuedAt || dagRun?.startDate as start date but doing so it seems to trigger a redraw of the graph which call setGanttDuration for each task instance that could lead to a change of the startDate/endDate entering in an infinite loop of date changes. my pull request tried to solve the issue by removing the startDate/endDate in the "reset" declaration, it works if I rebuild javascript on my local airflow instance, but doesn't pass the github validation process. It seems that just removing startDate/endDate make the file inconsistent and since my knowledge in reactjs is almost 0, I will let someone with a better understanding fix this error |
(cherry picked from commit 0c354e7) Co-authored-by: darkag <[email protected]>
(cherry picked from commit 0c354e7) Co-authored-by: darkag <[email protected]>
(cherry picked from commit 0c354e7) Co-authored-by: darkag <[email protected]>
(cherry picked from commit 0c354e7) Co-authored-by: darkag <[email protected]>
Apache Airflow version
2.10.1
If "Other Airflow 2 version" selected, which one?
No response
What happened?
Gantt chart is flickering due constant rescaling
"Queued at" time is computed incorrectly +2h to start and end time of DAG
What you think should happen instead?
I should see correct Gantt chart or at lease not flickering
How to reproduce
We migrate from airflow 2.7 to 2.9.3(same Gantt issue) and 2.10.1
Operating System
airflow docker release
Versions of Apache Airflow Providers
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
Helm chart
Anything else?
We migrate from airflow 2.7 to 2.9.3(same Gantt issue) and 2.10.1
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: