gcat-runner

G-CAT Runner is a task runner for G-CAT Workflow and others.


Keywords
cloud, bioinformatics
License
GPL-3.0
Install
pip install gcat-runner==1.0.0

Documentation

UnitTest Python License: GPL v3

GCATRunner

G-CAT Runner is a task runner for G-CAT Workflow and others.

Setup

  1. Install
pip install gcat_runner

How to use

  1. Bash script

For example, run.sh

set -x

echo "success"
  1. 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'
  1. 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.