I’m running Julia on a computing cluster and submitting jobs through slurm. The submission file is relatively simple:
#!/bin/bash
#SBATCH -o test.out
module purge
module load modules/2.1.1-20230405 gcc/11.3.0
module load julia/1.8.3
julia ./test.jl
with the code:
println("Test 1")
sleep(600)
println("Test 2")
When I do this, the output of the code only gets written to the outfile after the code completes (I’ve let the code sleep for over an hour to confirm that this is the case, as opposed to there just being some finite delay). This seems to be at least somewhat Julia related, as non-Julia output such as information about module loading gets written to the outfile immediately. Is anyone familiar with this, or does anyone have an idea as to what might be causing this?