-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
[AIRFLOW-7113] fix gantt render error #7913
Conversation
@cong-zhu Thanks for raising this PR. I know someone reported this error too. However, I couldn't reproduce the error. Do you have an example DAG or steps I can do to reproduce this error? |
The CI error looks irrelevant tho, maybe try rebase and rerun? |
98edf41
to
4bad6e1
Compare
@KevinYang21, yes it's correct. @kaxil. Tasks fail at early stage, e.g. during parsing, won't contain the start date. When handling failures, scheduler will store those failed tasks in task_fail table. Which crashes the gantt chart. To reproduce the error, you need to have a row w/o start_date in task_fail table. Entries w/o start_date in task_instance table will be fine as the query filters them out. I reverted the change on it. |
Shouldn't we change the Scheduler code to store the start_date and if there is any error store start_date = end_date during that time before we store in task_fail table? |
I think it still makes sense to store the empty start_date as it indicates the task failed before running. We just need to appropriately represent this from the UI. |
4bad6e1
to
a218284
Compare
a218284
to
be2044d
Compare
Co-authored-by: Cong Zhu <[email protected]>
Co-authored-by: Cong Zhu <[email protected]> (cherry picked from commit d97711a)
Co-authored-by: Cong Zhu <[email protected]>
Co-authored-by: Cong Zhu <[email protected]>
Issue link: AIRFLOW-7113
Make sure to mark the boxes below before creating PR: [x]
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.