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

Overwriting of cached task outputs for a single execution #minor #616

Merged
merged 5 commits into from
Jan 6, 2023

Conversation

MorpheusXAUT
Copy link
Contributor

@MorpheusXAUT MorpheusXAUT commented Oct 5, 2022

TL;DR

Added checkbox to toggle cache overwriting for a single execution.

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

flyteconsole now supports overwriting of cached outputs for a single workflow or task execution. A checkbox was added to the launch/relaunch forms, similar to the interruptible override.

The protobuf timestamp helper changes were added since my local version of latest flyteadmin and flyteconsole seemed to return numbers instead of Longs, causing the UI to error while converting protobuf timestamps. Thus, a simple type check was added - I can revert this if it's not desired/something broken on my local side.

As this uses a currently unmerged flyteidl version, the PR is created as a draft (for review) until a new version of flyteidl is available.

Tracking Issue

flyteorg/flyte#2867

Follow-up issue

NA

@codecov
Copy link

codecov bot commented Oct 6, 2022

Codecov Report

Merging #616 (e338fa4) into master (c975321) will increase coverage by 0.07%.
The diff coverage is 90.38%.

@@            Coverage Diff             @@
##           master     #616      +/-   ##
==========================================
+ Coverage   68.31%   68.38%   +0.07%     
==========================================
  Files         448      449       +1     
  Lines       10673    10714      +41     
  Branches     1841     1849       +8     
==========================================
+ Hits         7291     7327      +36     
- Misses       3382     3387       +5     
Impacted Files Coverage Δ
.../zapp/console/src/components/Executions/strings.ts 100.00% <ø> (ø)
.../src/components/Launch/LaunchForm/launchMachine.ts 88.88% <ø> (ø)
...onsole/src/components/Launch/LaunchForm/strings.ts 100.00% <ø> (ø)
.../console/src/components/Launch/LaunchForm/types.ts 100.00% <ø> (ø)
packages/zapp/console/src/models/Execution/api.ts 53.44% <0.00%> (-1.91%) ⬇️
packages/zapp/console/src/common/utils.ts 83.60% <87.50%> (-0.61%) ⬇️
...ts/Launch/LaunchForm/LaunchOverwriteCacheInput.tsx 91.66% <91.66%> (ø)
.../console/src/components/Executions/CacheStatus.tsx 89.36% <100.00%> (+0.23%) ⬆️
...utions/ExecutionDetails/ExecutionMetadataExtra.tsx 100.00% <100.00%> (ø)
...cutions/ExecutionDetails/RelaunchExecutionForm.tsx 100.00% <100.00%> (ø)
... and 7 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@MorpheusXAUT MorpheusXAUT changed the title Skipping of cached task outputs for a single execution #minor Overwriting of cached task outputs for a single execution #minor Nov 15, 2022
@MorpheusXAUT MorpheusXAUT marked this pull request as ready for review November 15, 2022 08:56
@kumare3
Copy link
Contributor

kumare3 commented Jan 3, 2023

cc @MorpheusXAUT / @jsonporter any progress on this?

Nick Müller added 5 commits January 3, 2023 14:05
@MorpheusXAUT
Copy link
Contributor Author

cc @MorpheusXAUT / @jsonporter any progress on this?

@kumare3 nothing new from my side regarding this PR - just rebased onto current master to resolve the merge conflicts.

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 - nice work!

@jsonporter jsonporter merged commit 88bcfba into flyteorg:master Jan 6, 2023
@MorpheusXAUT MorpheusXAUT deleted the cache-eviction-skip-cache branch January 7, 2023 09:55
@flyte-bot
Copy link
Collaborator

🎉 This PR is included in version 1.4.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants