Available in
latch >= 2.62.0
- Call the workflow with Python parameter values.
- Use a
LaunchPlan
from a previously registered workflow.
Pre-requisites
- Please make sure you have registered your workflow to Latch using
latch register
. This creates a new workflow version, which you will reference in your script.
Usage
- Using Python parameter values
- Using a previously registered LaunchPlan
-
wf_name:
Name of the workflow function. This is the function defined immediately after the@workflow
decorator in your code (Example) -
version
: Workflow version registered on Latch -
params
: The Python types passed here must exactly match the types used in the workflow function signature. Even if two types have the same structure, validation will fail if they come from different modules.
Best practice: Import the types directly from the file where they were originally defined. For example, in Nextflow workflows, types are often defined inwf.entrypoint
; import them from there as shown in the example above.
Important note on Python version: The Python version in the Docker image used during workflow registration must match the Python version running the script that calls
launch
or launch_from_launch_plan
.