You can have multiple valohai.yaml files in your repository. Each Valohai project links to one valohai.yaml configuration file, which can reside in the root or a subfolder.
By default, Valohai looks for valohai.yaml in the repository’s root. To specify a different path, go to Project Settings > Repository and define the new path, like “ingestion/valohai.yaml” for a subfolder.
Launching jobs with a custom valohai.yaml from the command-line
You need to specify the location of your custom valohai.yaml file, when launching jobs from the command-line.
adhoc
For adhoc jobs, set the path using the –yaml flag. For instance, if valohai.yaml is in “ingestion,” run:
vh exec run mystep --adhoc --yaml ingestion/valohai.yaml
An execution contains the full commit
Executions include your full Git commit, so even if valohai.yaml is in a subfolder, Valohai pulls the entire commit, enabling you to utilize modules outside that subfolder.
From a Git commit
When committing to Git, remember to update the path in the Valohai web app before running a job.
For executions that are based on a Git commit, set the project mode to remote or specify the desired commit:
vh --project-mode remote --project <project-id> exec run <step-name>
or
vh exec run <step-name> --commit <commit-id>
The project mode option uses the latest fetched commit, and you can also use –commit to choose a specific commit.