Skip to content

Commit

Permalink
Add raw file for test
Browse files Browse the repository at this point in the history
Signed-off-by: Dennis Keck <[email protected]>
  • Loading branch information
fellhorn committed Jun 17, 2024
1 parent 47b74bf commit 818299a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions flytectl/cmd/compile/testdata/launchplan-in-wf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Tests that a LaunchPlan with inputs can be used in a workflow for flytectl compile
from flytekit import LaunchPlan, task, workflow

@task
def my_task(num: int) -> int:
return num + 1


@workflow
def inner_workflow(num: int) -> int:
return my_task(num=num)


@workflow
def outer_workflow() -> int:
return LaunchPlan.get_or_create(inner_workflow, "name_override", default_inputs={"num": 42})()

0 comments on commit 818299a

Please sign in to comment.