G-CAT Runner is a task runner for G-CAT Workflow and others.
- Install
pip install gcat_runner
- Bash script
For example, run.sh
set -x
echo "success"
- Config file
With YAML format, for example, conf.yml
log_dir: . # log output directory
max_task: 0 # count of array job (default 0)
qsub_option: '' # qsub/slurm command options (invalid with bash-runner)
retry_count: 1 # number for retry
runner: bash # choose in ['qsub', 'drmaa', 'slurm', 'bash']
# qsub: task runs with 'qsub -sync'
# drmaa: task runs with drmaa library
# slurm: task runs with 'sbatch --wait'
# qsub: task runs with 'bash'
- Run
gcat_runner run.sh conf.yml
options:
--interval seconds
: Randomly modify job submission within the specified range of 0 to the specified number of seconds.