[BUG] Task registration fails if node_dependency_hints
includes a workflow
#5989
Labels
bug
Something isn't working
flytekit
FlyteKit Python related issue
help wanted
Extra attention is needed
Describe the bug
With the following workflow
fails with
However
works as expected
Expected behavior
Should register the workflow successfully
Additional context to reproduce
The cause
The registration code assumes that the last entity registered is the top level one
https://github.com/flyteorg/flytekit/blob/8fdd0c68f10b9f08cd65aa74ef90f0d9af564dd2/flytekit/remote/remote.py#L890
However this assumption no longer holds when registering a task with a
node_dependency_hint
on a workflow. I guess we need to switch to retrieving the top level registered entity by ID instead of assuming.Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: