Hi everyone, I ran into the issue that `@dynamic`...
# flyte-support
f
Hi everyone, I ran into the issue that
@dynamic
workflows are not shown in the flyteconsole after registration. This example works just fine
Copy code
from flytekit import task, dynamic, workflow

@task
def mytask() -> str:
    return "Hello"

@workflow
def test_workflow() -> None:
    greeting = mytask()
    print(greeting)

if __name__ == "__main__":
    test_workflow()
However, this one does not
Copy code
from flytekit import task, dynamic, workflow

@task
def mytask() -> str:
    return "Hello"

@dynamic
def test_workflow_dynamic() -> None:
    greeting = mytask()
    print(greeting)

if __name__ == "__main__":
    test_workflow_dynamic()
I can serialize and register without any errors. But after registration there is no 'test_workflow_dynamic' in the flyteconsole. Does anyone have an idea what could cause this issue? I am on flytekit 1.8.1 and flyte-binary 1.6.
b
there is a known bug on flyteconsole which is fixed but not released in main Flyte release yet, you can try upgrading flyteconsole
f
Thanks for your answer @broad-train-34581 I will update and try again.
m
have you looked it in the
Tasks
section, it should not be in the
Workflows
section since dynamic is not a workflow