Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Add TaskExecutionMetadata to TaskExecutionEvent #190

Merged
merged 3 commits into from
Sep 29, 2020
Merged

Conversation

katrogan
Copy link
Contributor

TL;DR

Add TaskExecutionMetadata to TaskExecutionEvent. At this point this only captures whether a task on a spot node or not.

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

https://docs.google.com/document/d/1nqAp5-DanklNvG6OeQ3uIacZYGvf0oXioz7CboP_CsU/edit

Tracking Issue

flyteorg/flyte#520

Follow-up issue

NA

@katrogan katrogan requested review from migueltol22 and removed request for EngHabu September 23, 2020 23:26
go.mod Outdated
@@ -22,7 +22,7 @@ require (
github.com/grpc-ecosystem/grpc-gateway v1.14.3 // indirect
github.com/imdario/mergo v0.3.8 // indirect
github.com/lyft/datacatalog v0.2.1
github.com/lyft/flyteidl v0.18.6
github.com/lyft/flyteidl v0.18.7-0.20200923210508-5e52ea4ac960
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I won't merge until this is an official release version

@katrogan katrogan requested a review from EngHabu September 23, 2020 23:27
@kumare3
Copy link
Contributor

kumare3 commented Sep 23, 2020

Also hold, I want to understand this change. This is a great change and should be done for other TaskExecution metadata as well. can we sync?

@kumare3
Copy link
Contributor

kumare3 commented Sep 23, 2020

I am talking WRT - flyteorg/flyte#325

@katrogan
Copy link
Contributor Author

@kumare3 TaskExecutionMetadata is entirely brand new as of flyteorg/flyteidl#82

@codecov-commenter
Copy link

Codecov Report

Merging #190 into master will increase coverage by 0.02%.
The diff coverage is 85.71%.

@kumare3
Copy link
Contributor

kumare3 commented Sep 23, 2020

@kumare3 TaskExecutionMetadata is entirely brand new as of flyteorg/flyteidl#82

I realize that, but I think can you think throttle listed issue as well

@katrogan
Copy link
Contributor Author

@kumare3 sorry I replied before I saw your link, thanks for pointing out that issue

EngHabu
EngHabu previously approved these changes Sep 24, 2020
@katrogan
Copy link
Contributor Author

friendly ping @EngHabu @kumare3

@@ -50,7 +50,8 @@ func trimErrorMessage(original string, maxLength int) string {
return original[0:maxLength/2] + original[len(original)-maxLength/2:]
}

func ToTaskExecutionEvent(taskExecID *core.TaskExecutionIdentifier, in io.InputFilePaths, out io.OutputFilePaths, info pluginCore.PhaseInfo) (*event.TaskExecutionEvent, error) {
func ToTaskExecutionEvent(taskExecID *core.TaskExecutionIdentifier, in io.InputFilePaths, out io.OutputFilePaths, info pluginCore.PhaseInfo,
Copy link
Contributor

Choose a reason for hiding this comment

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

is interruptible entirely decided by node? I thought it is decided by the task execution itself?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay wow looking at the code though, I only see it ever initialized from the workflow-level setting https://github.com/lyft/flytepropeller/blob/master/pkg/controller/nodes/node_exec_context.go#L206,L209 😮

this should be fixed

Copy link
Contributor

Choose a reason for hiding this comment

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

ohh are you saying that the node will change this setting lets say for retries etc?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kumare3 kumare3 self-requested a review September 29, 2020 21:29
@katrogan katrogan merged commit 8059d6d into master Sep 29, 2020
eapolinario pushed a commit to eapolinario/flytepropeller that referenced this pull request Aug 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants