Skip to content
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

fix: duration is not always calculated for task executions #185

Merged
merged 1 commit into from
Aug 19, 2021

Conversation

govalt
Copy link
Contributor

@govalt govalt commented Aug 18, 2021

TL;DR

Fixed the unknown is being present for both start time and duration in task details panel for nodes.
Added last updated to be shown instead if both of above fields are absent in API response.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

Created a fallback option when started_at and duration fields are not present in the API response.

Tracking Issue

fixes flyteorg/flyte#885

Follow-up issue

NA

@welcome
Copy link

welcome bot commented Aug 18, 2021

Thank you for opening this pull request! 🙌
These tips will help get your PR across the finish line: - Most of the repos have a PR template; if not, fill it out to the best of your knowledge. - Sign off your commits (Reference: DCO Guide).

Signed-off-by: csirius <davidtruong.dev@gmail.com>
@govalt govalt force-pushed the 885-duration-not-calculated branch from 2af7e56 to b387ef8 Compare August 18, 2021 22:37
@govalt govalt requested a review from jsonporter August 18, 2021 22:37
@codecov
Copy link

codecov bot commented Aug 18, 2021

Codecov Report

❗ No coverage uploaded for pull request base (master@950950d). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #185   +/-   ##
=========================================
  Coverage          ?   66.66%           
=========================================
  Files             ?      348           
  Lines             ?     7242           
  Branches          ?     1226           
=========================================
  Hits              ?     4828           
  Misses            ?     2414           
  Partials          ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 950950d...b387ef8. Read the comment docs.

@govalt govalt requested a review from EngHabu August 18, 2021 22:44
Copy link
Contributor

@jsonporter jsonporter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

@jsonporter jsonporter merged commit 2e12418 into master Aug 19, 2021
@welcome
Copy link

welcome bot commented Aug 19, 2021

Congrats on merging your first pull request! 🎉

@flyte-bot
Copy link
Collaborator

🎉 This PR is included in version 0.22.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@anrusina anrusina deleted the 885-duration-not-calculated branch January 13, 2022 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Duration is not always calculated for task executions
3 participants