-
Notifications
You must be signed in to change notification settings - Fork 300
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
GH-5989: Fix task registration with node_dependency_hints
#2992
GH-5989: Fix task registration with node_dependency_hints
#2992
Conversation
Signed-off-by: Thomas Newton <[email protected]>
Signed-off-by: Thomas Newton <[email protected]>
Signed-off-by: Thomas Newton <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2992 +/- ##
==========================================
- Coverage 51.51% 46.78% -4.73%
==========================================
Files 203 200 -3
Lines 21199 20950 -249
Branches 2707 2708 +1
==========================================
- Hits 10920 9802 -1118
- Misses 9688 10663 +975
+ Partials 591 485 -106 ☔ View full report in Codecov by Sentry. |
Hmm.... looks like my test is failing on CI, I'll investigate shortly. |
Signed-off-by: Thomas Newton <[email protected]>
Signed-off-by: Thomas Newton <[email protected]>
b3071b8
to
3efd4ea
Compare
Signed-off-by: Thomas Newton <[email protected]>
flyte_workflow = FlyteWorkflow.promote_from_closure(compiled_wf, node_launch_plans) | ||
flyte_workflow.template._id = workflow_id | ||
return flyte_workflow |
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 bit isn't necessary, but it looks like tasks already do this and it makes it easier to unittest.
Thank you! |
Tracking issue
Closes flyteorg/flyte#5989
Why are the changes needed?
To fix directly registering tasks that use
node_dependency_hints
pointing to a workflow.What changes were proposed in this pull request?
Make
FlyteRemote._serialize_and_register
always return the remote version of the providedentity
regardless of whether it happens to be the last entity to be registered.How was this patch tested?
Wrote a new unittest
Check all the applicable boxes
Related PRs
node_dependency_hints
were introduced by #2015Docs link