https://flyte.org logo
#flytekit
Title
# flytekit
k

Konstantin Slisenko

12/14/2021, 8:17 PM
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()
)
g

George Snelling

12/16/2021, 8:46 PM
@Yee @Eduardo Apolinario (eapolinario) any ideas?
y

Yee

12/16/2021, 8:58 PM
hey @Konstantin Slisenko let us know when you can do a google meet to chat about this
7 Views