Hi, I’m going to upgrade from old to the new flytekit. I have a lot of workflows written on the old style flytekit. Is it possible to keep an old workflows working and have a flexibility to create new workflows?
When I’m trying to create old style workflow I’m getting no launch plan at Flyte
Copy code
@inputs(input=Types.String)
@outputs(out=Types.String)
@python_task
def sample_legacy_task(workflow_parameters, input, out):
# TODO some logic
out.set("success")
@workflow_class
class SimpleLegacyWorkflow:
input = Input(
Types.String,
help='Test input'
)
result = sample_legacy_task(input=input)
output = Output(result.outputs.out, sdk_type=Types.String)
SimpleLegacyWorkflowLaunchWithCredentials = SimpleLegacyWorkflow.create_launch_plan(
labels=get_launch_plan_labels(), annotations=get_launch_plan_annotations()
)
h
hallowed-translator-36253
12/16/2021, 8:46 PM
@thankful-minister-83577@high-accountant-32689 any ideas?
t
thankful-minister-83577
12/16/2021, 8:58 PM
hey @straight-candle-20644 let us know when you can do a google meet to chat about this