This config used env{ SLURM_CLUSTERS='biohpc_gen' } to specify the correct cluster in the submission. This approach does not work, since this sets SLURM_CLUSTERS in .command.run after the SBATCH directives. The job is submitted before the variable is set, and as a consequence may target the wrong cluster. clusterOptions = '--clusters=biohpc_gen' solves this by explicitly specifying the cluster to target in the SBATCH directives.
This config used
env{ SLURM_CLUSTERS='biohpc_gen' }
to specify the correct cluster in the submission. This approach does not work, since this setsSLURM_CLUSTERS
in.command.run
after the SBATCH directives. The job is submitted before the variable is set, and as a consequence may target the wrong cluster.clusterOptions = '--clusters=biohpc_gen'
solves this by explicitly specifying the cluster to target in the SBATCH directives.