I'm trying to run a snakemake pipeline through crontab on a SLURM cluster. Here is the bash script that I used to send to the slurm.
#!/bin/bash
#SBATCH --job-name=nextstrain
snakemake --configfile config.yaml --jobs 100 --keep-going --rerun-incomplete --latency-wait 360 --cluster 'sbatch' -r -p --useconda
This scrip runs as intended. However, when I run the script through crontab as so:
0 8 * * 1 /bin/bash /home/user/snakemake_automate.sh
I get the error:
Error submitting jobscript (exit code 127):
I am not sure what I should do to fix this error.