-
Notifications
You must be signed in to change notification settings - Fork 674
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Make 'flytectl compile' consider launchplans used within workflo…
…ws (#5463) * Fix: Make 'flytectl compile' consider launchplans used within workflows Signed-off-by: Dennis Keck <26092524+fellhorn@users.noreply.github.com> * Add raw file for test Signed-off-by: Dennis Keck <26092524+fellhorn@users.noreply.github.com> * Add documentation on how to create a package Signed-off-by: Dennis Keck <26092524+fellhorn@users.noreply.github.com> --------- Signed-off-by: Dennis Keck <26092524+fellhorn@users.noreply.github.com>
- Loading branch information
Showing
4 changed files
with
85 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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})() |
Binary file not shown.