ClusterManagers.jl hangs on pbs

I ran into this issue last year, as have a few other people (see here and here). It seems like the interactive addprocs_pbs() approach doesn’t work on all clusters. The details of why not I can’t tell you, but an alternative approach is to use Julia’s --machinefile option on startup to tell it which processors PBS has allocated you…basically the cluster version of running julia -p 2 myscript.jl on a laptop: