I know very little about how SLURM works, but this sounds like it's a
configuration issue - that it hasn't been configured in a way that
indicates the login nodes cannot also be used as compute nodes. When I run
salloc on the cluster I use, I *always* get a shell on a compute node,
never on the log
The man page for sbatch says this about the --nice option:
--nice[=adjustment]
>Run the job with an adjusted scheduling priority within Slurm. With no
>adjustment value the scheduling priority is decreased by 100. A
>negative nice value increases the priority, otherwise decreases