freezing-shampoo-67249
07/27/2023, 10:56 AM@dynamic
workflows are not shown in the flyteconsole after registration.
This example works just fine
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
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.broad-train-34581
07/27/2023, 11:05 AMfreezing-shampoo-67249
07/27/2023, 11:22 AMmagnificent-teacher-86590
07/27/2023, 5:06 PMTasks
section, it should not be in the Workflows
section since dynamic is not a workflow