Skip to content
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

[BUG] underscore not allowed for node_name in with_overrides #3608

Closed
2 tasks done
Nan2018 opened this issue Apr 20, 2023 · 0 comments · Fixed by flyteorg/flytekit#1608
Closed
2 tasks done

[BUG] underscore not allowed for node_name in with_overrides #3608

Nan2018 opened this issue Apr 20, 2023 · 0 comments · Fixed by flyteorg/flytekit#1608
Assignees
Labels
bug Something isn't working untriaged This issues has not yet been looked at by the Maintainers

Comments

@Nan2018
Copy link

Nan2018 commented Apr 20, 2023

Describe the bug

overriding node_name with a name containing underscore causes failure when registering the workflow

Expected behavior

node names containing underscore should work

Additional context to reproduce

@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')

registering the above workflow causes:

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].

no error if replace underscore with dash as node_name='t-1' node_name='t-2'

Screenshots

No response

Are you sure this issue hasn't been raised already?

  • Yes

Have you read the Code of Conduct?

  • Yes
@Nan2018 Nan2018 added bug Something isn't working untriaged This issues has not yet been looked at by the Maintainers labels Apr 20, 2023
@pingsutw pingsutw self-assigned this Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged This issues has not yet been looked at by the Maintainers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants