-
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
show correct duration on graph view for running task (#8311) #8675
Conversation
Hi @ashb , Do you have any comment for this PR? : ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Could you also fix/remove the Ended: invalid date
please?
Hi @ashb, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 (only a suggestion)
@ashb Do you have more comments? Can I get approval from you : ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment, and could you please update the screenshot in the PR?
Co-authored-by: Ash Berlin-Taylor <[email protected]>
Thanks for comment @ashb , The screenshot is updated now |
Awesome work, congrats on your first merged pull request! |
…pache#8675) * show correct duration on graph view for running task (apache#8311) * fix invalid end date (apache#8311) * Update airflow/www/static/js/task-instances.js Co-authored-by: Ash Berlin-Taylor <[email protected]> Co-authored-by: Ash Berlin-Taylor <[email protected]>
* fix invalid end date (#8311) * Update airflow/www/static/js/task-instances.js Co-authored-by: Ash Berlin-Taylor <[email protected]>
* fix invalid end date (#8311) * Update airflow/www/static/js/task-instances.js Co-authored-by: Ash Berlin-Taylor <[email protected]>
…pache#8675) * fix invalid end date (apache#8311) * Update airflow/www/static/js/task-instances.js Co-authored-by: Ash Berlin-Taylor <[email protected]>
This PR is aim to fix issue #8311
Idea:
Tooltip before fix:
Tooltip after fix:
The original bug of not showing duration at all on graph view is not the case on master branch, but, the value shows in the tooltip is not correct, since it is read from database and scheduler doesn't update duration frequently to reflect the actual duration till current timestamp for running tasks.
Note: The bug reported in issue 8311 is on v1.10.10 but this PR is based on master branch. Since there are fundamental change between master and v1.10.10 branch, separate PR might be needed to for v1.10.10.
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.