Nan Qin
04/20/2023, 12:38 AMnode_name
when using with_overrides(node_name=)
in the workflow definition. An error occurred when registering the workflow:
@flytekit.task
def task1(x: int) -> str:
return str(x)
@flytekit.task
def task2(x: str) -> str:
return x
@flytekit.workflow
def baby_training_wf() -> str:
t1 = task1(x=3).with_overrides(node_name='t_1')
return task2(x=t1).with_overrides(node_name='t_2')
error msg:
Failed with Exception: Reason: SYSTEM:Unknown
RPC Failed, with Status: StatusCode.INTERNAL
details: failed to compile workflow for [resource_type:WORKFLOW project:"flytesnacks" domain:"development" name:"tmp.workflow.baby_training_wf" version:"yXlTbWXJo4nsbhCWJe5PGw==" ] with err failed to compile workflow with err Collected Errors: 4
Error 0: Code: NodeReferenceNotFound, Node Id: t_1, Description: Referenced node [t_1] not found.
Error 1: Code: NodeReferenceNotFound, Node Id: t_2, Description: Referenced node [t_2] not found.
Error 2: Code: ParameterNotBound, Node Id: end-node, Description: Parameter not bound [o0].
Error 3: Code: ParameterNotBound, Node Id: t-2, Description: Parameter not bound [x].
node_name='t-1'
node_name='t-2'
Dan Rammer (hamersaw)
04/20/2023, 2:47 PMNan Qin
04/20/2023, 4:26 PMwith_overrides
id {
node_id: "f3ud1gfq"
execution_id {
project: "flytesnacks"
domain: "development"
name: "ff31a4cdb358e4f2fa05"
}
}
...
metadata {
spec_node_id: "tttttt-222222-tttttt-222222"
}
this seems to happen only when the overriden node_name is long.Dan Rammer (hamersaw)
04/21/2023, 2:13 PMKevin Su
04/21/2023, 3:31 PMtttttt-222222-tttttt-222222
generated from flytekit?Nan Qin
04/21/2023, 4:01 PMwith_overrides(node_name='tttttt-222222-tttttt-222222')
Dan Rammer (hamersaw)
04/21/2023, 4:02 PMNan Qin
04/21/2023, 4:05 PM