Execute a workflow programmatically from python.
latch >= 2.62.0
LaunchPlan
from a previously registered workflow.latch register
. This creates a new workflow version, which you will reference in your script.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.wf.entrypoint
; import them from there as shown in the example above.
launch
or launch_from_launch_plan
.