I am unsure where I add the --wait
sbatch option when using snakemake. I tried to add it to the snakemake command itself but I get the following error:
Error submitting jobscript (exit code 1):
Submitted batch job 5389577
Any help would be appriciated.
My snakemake command is as follows:
snakemake --latency-wait 60 --rerun-incomplete --keep-going --jobs 99 --cluster-status 'python /home/lamma/faststorage/scripts/slurm-status.py' --cluster 'sbatch -t {cluster.time} --mem={cluster.mem} --cpus-per-task={cluster.c} --error={cluster.error} --job-name={cluster.name} --output={cluster.output} --wait' --cluster-config bacterial-hybrid-assembly-config.json --configfile yaml-config-files/test_experiment3.yaml --snakefile bacterial-hybrid-assembly.smk