If I use the command sbatch -n 4 script.jl with the script of your example, I see that there are 4 workers registered, plus 1 master process.
How will these 5 processes be distributed on the 4 allocated resources ? Is the master process sharing a resource with one of the worker processes ?