OmniOpt2-Logo ScaDS.ai-Logo

πŸ“ The --run_program_once parameter


The parameter run_program_once 🐚 allows you to run a shell command or script once before your actual program starts.
Use it to:
bash /absolute/path/to/install.sh

or
bash relative/path/to/install.sh

The path is relative to your current pwd when starting this job.

πŸ“ Example: install.sh

Here’s an example install.sh you might call with run_program_once :
#!/bin/bash
echo "Installing dependencies..."
pip install -r requirements.txt

echo "Downloading dataset..." wget https://example.com/dataset.zip unzip dataset.zip -d ./data
echo "Done βœ…"

πŸ’‘ Tips