-
-
Save bstadlbauer/6680fccaa25154afe2d752ccc948c93e to your computer and use it in GitHub Desktop.
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
from flytekit import workflow, task, LaunchPlan, dynamic | |
@task | |
def some_task(): | |
print("Do something") | |
@dynamic | |
def dynamic_task(): | |
for i in range(1): | |
some_task() | |
@workflow | |
def lauch_plan_workflow(): | |
dynamic_task() | |
launch_plan = LaunchPlan.get_or_create(lauch_plan_workflow) | |
@workflow | |
def topelevel_workflow(): | |
launch_plan() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment