Skip to content

Commit

Permalink
Fix logic with --use flag (was being inserted in SLURM flags, not in …
Browse files Browse the repository at this point in the history
…general flags)
  • Loading branch information
rusalkaguy committed Mar 18, 2020
1 parent 8ebbe1d commit 061b819
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snakemakeslurm
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ SM_PARAMS="job-name ntasks partition time mail-type error output"
# list of SLURM parameters that will come from Snakefile and cluster.slurm.cheaha.json/cluster.json
# with a name mapping
#
SM_ARGS="$AUTO_USE_ARGS"
SM_ARGS=""

# "threads: 4" attribute directly on the rule, so works correctly for non-cluster case
SM_ARGS="$SM_ARGS --cpus-per-task {threads}"
Expand Down Expand Up @@ -129,5 +129,5 @@ $EXEC snakemake \
--latency-wait 45 \
--jobs 999 \
$CCONFIGS \
--cluster "sbatch $SM_ARGS" \
--cluster "sbatch $AUTO_USE_ARGS $SM_ARGS" \
$*

0 comments on commit 061b819

Please sign in to comment.