-
Notifications
You must be signed in to change notification settings - Fork 681
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
WebAPI plugins optimization #5237
Changes from all commits
3488a2e
6505f26
773eb5a
bc19e09
07aec4a
80106d4
3ecbf2d
9144df3
9179352
490eacd
d06fa0e
2530eb7
a02a4a4
c8ad334
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -40,6 +40,11 @@ type ResourceWrapper struct { | |||||||||||||||||||||||||||
LogLinks []*flyteIdl.TaskLog | ||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
// IsTerminal is used to avoid making network calls to the agent service if the resource is already in a terminal state. | ||||||||||||||||||||||||||||
func (r ResourceWrapper) IsTerminal() bool { | ||||||||||||||||||||||||||||
return r.Phase == flyteIdl.TaskExecution_SUCCEEDED || r.Phase == flyteIdl.TaskExecution_FAILED || r.Phase == flyteIdl.TaskExecution_ABORTED | ||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add TIMED_OUT too? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. there is no timeout. flyte/flyteidl/protos/flyteidl/core/execution.proto Lines 44 to 56 in 97a79c0
|
||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
type ResourceMetaWrapper struct { | ||||||||||||||||||||||||||||
OutputPrefix string | ||||||||||||||||||||||||||||
AgentResourceMeta []byte | ||||||||||||||||||||||||||||
|
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.
Why
2
?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.
It was 2.
flyte/flyteplugins/go/tasks/pluginmachinery/internal/webapi/launcher.go
Line 52 in e8588f3
because we set it to 0 when we allocate a token.
flyte/flyteplugins/go/tasks/pluginmachinery/internal/webapi/allocation_token.go
Line 54 in e8588f3