The default PipelineCreate API call requires you to define the full nodes/edges structure, and allows you to override items.
There's another API that allows you to say "Run this pipeline from this commit with the default values from valohai.yaml
": PipelineCreateFromTemplate.
- Send a POST request to:
https://app.valohai.com/api/v0/pipelines/create-from-template/
- Include the following things in the request body: project id, commit, and the name of the pipeline as written in your valohai.yaml.
- Instead of specifying the commit hash, you can also use the latest fetched commit from a branch by using the branch name (e.g.
main
).
- Instead of specifying the commit hash, you can also use the latest fetched commit from a branch by using the branch name (e.g.
Note that the PipelineCreateFromTemplate does not allow any overrides. Moreover, you don't need to specify environment
. Valohai will use the step default environments, or if the step doesn't have one, it'll use the project/org default environment.
Comments
0 comments
Please sign in to leave a comment.