Valohai expects the JSON payload to include a commit
section when calling Valohai APIs to launch a new job.
The commit can either be a commit hash or for example a branch name.
The payload below can be sent to https://app.valohai.com/api/v0/pipelines/create-from-template/ to launch a new pipeline (MyTrainingPipeline) based on the latest valohai.yaml
definition that is available on the main branch.
{
"project": "017a9f8f-7c83-f780-5794-37276981fda0",
"commit": "main",
"name": "MyTrainingPipeline"
}
Fetch latest commits
Valohai doesn't automatically fetch new commits from your Git repository. API users can send a POST request to the /api/v0/projects/{id}/fetch/ endpoint to fetch the latest commits before launching a new API call
Comments
0 comments
Please sign in to leave a comment.