Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[flytepropeller][flyteadmin] Streaming Decks V2 #6053
[flytepropeller][flyteadmin] Streaming Decks V2 #6053
Changes from 30 commits
54aa165
9ed6b6e
4b4f6bd
dd774cb
0bb8e91
25fea29
4e24e91
8d1d0e4
31853bb
4068043
65b6efe
137579f
04f7fbc
aa56d64
a16851f
7314455
19498f5
74f595f
3bd3336
f6d8493
4b56e52
db4b19e
2737251
564dc5f
69ba94e
c992eae
0b91b5c
1d18265
96500c1
dd9dbaa
f51ff8c
bd5e682
561a43c
a33ba09
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 98 in flytepropeller/pkg/controller/nodes/task/handler.go
Codecov / codecov/patch
flytepropeller/pkg/controller/nodes/task/handler.go#L97-L98
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.
Consider initializing
OutputInfo
if it'snil
before attempting to setDeckURI
to avoid potential nil pointer dereference inRemoveDeckURIIfDeckNotExists
Code suggestion
Code Review Run #dc455e
Is this a valid issue, or was it incorrectly flagged by the Agent?
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.
@Future-Outlier , does this suggestion make sense?
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.
this is superfluous since in the case of
OutputInfo
beingnil
by definitionDeckUri
is going to be nil.Check warning on line 107 in flytepropeller/pkg/controller/nodes/task/handler.go
Codecov / codecov/patch
flytepropeller/pkg/controller/nodes/task/handler.go#L102-L107
Check warning on line 117 in flytepropeller/pkg/controller/nodes/task/handler.go
Codecov / codecov/patch
flytepropeller/pkg/controller/nodes/task/handler.go#L117
Check warning on line 120 in flytepropeller/pkg/controller/nodes/task/handler.go
Codecov / codecov/patch
flytepropeller/pkg/controller/nodes/task/handler.go#L120
Check warning on line 194 in flytepropeller/pkg/controller/nodes/task/handler.go
Codecov / codecov/patch
flytepropeller/pkg/controller/nodes/task/handler.go#L192-L194
Check warning on line 450 in flytepropeller/pkg/controller/nodes/task/handler.go
Codecov / codecov/patch
flytepropeller/pkg/controller/nodes/task/handler.go#L449-L450
Check warning on line 459 in flytepropeller/pkg/controller/nodes/task/handler.go
Codecov / codecov/patch
flytepropeller/pkg/controller/nodes/task/handler.go#L457-L459
Check warning on line 461 in flytepropeller/pkg/controller/nodes/task/handler.go
Codecov / codecov/patch
flytepropeller/pkg/controller/nodes/task/handler.go#L461
Check warning on line 553 in flytepropeller/pkg/controller/nodes/task/handler.go
Codecov / codecov/patch
flytepropeller/pkg/controller/nodes/task/handler.go#L552-L553
Check warning on line 557 in flytepropeller/pkg/controller/nodes/task/handler.go
Codecov / codecov/patch
flytepropeller/pkg/controller/nodes/task/handler.go#L556-L557
Check warning on line 563 in flytepropeller/pkg/controller/nodes/task/handler.go
Codecov / codecov/patch
flytepropeller/pkg/controller/nodes/task/handler.go#L562-L563
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.
Consider checking for errors from
RemoveDeckURIIfDeckNotExists
before proceeding with the task completion. The current implementation only logs the error but continues execution which could lead to inconsistent state.Code suggestion
Code Review Run #dc455e
Is this a valid issue, or was it incorrectly flagged by the Agent?
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.
Consider moving the deck URI cleanup logic to a separate function for better code organization and reusability. The deferred function could be simplified by extracting the logic into a named function.
Code suggestion
Code Review Run #dc455e
Is this a valid issue, or was it incorrectly flagged by the Agent?