'Stale File Handle' Error When Submitting Job Array on SLURM

The issue was resolved using @simonbyrne 's PkgLock.jl (https://github.com/simonbyrne/PkgLock.jl).

The submission code was changed to the following after installing PkgLock.jl as a shared environment:

~/julia-1.6.2/bin/julia --project -e 'push!(LOAD_PATH, "@pkglock"); using PkgLock; PkgLock.instantiate_precompile()'
~/julia-1.6.2/bin/julia --project -e 'include(PATH_TO_SCRIPT)'
1 Like