Skip to content

Commit

Permalink
add ref workflow wrapper
Browse files Browse the repository at this point in the history
Signed-off-by: Ayush Kamat <ayush@latch.bio>
  • Loading branch information
ayushkamat committed Aug 23, 2022
1 parent f001760 commit 9a4dbc2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions latch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
)
from latch.resources.conditional import create_conditional_section
from latch.resources.map_tasks import map_task
from latch.resources.reference_workflow import workflow_reference
from latch.resources.tasks import (
custom_task,
large_gpu_task,
Expand Down
15 changes: 15 additions & 0 deletions latch/resources/reference_workflow.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from flytekit.core.launch_plan import reference_launch_plan

from latch_cli.utils import current_workspace


def workflow_reference(
name: str,
version: str,
):
return reference_launch_plan(
project=current_workspace(),
domain="development",
name=name,
version=version,
)

0 comments on commit 9a4dbc2

Please sign in to comment.