title: Python wait Slurm job?
body: <p>I have a python script that should generate a bunch of inputs for an external program to be called. The calls to the external program will be through slurm.</p>
  
  <p>What I want is for my script to wait until all the generated calls to the external programs are finished (not the slurm command, the actual execution of the external program), to then parse the outputs generated by the external program, do some stuff with the data.</p>
  
  <p>I tried subprocess call, but it only waits the slurm submission command. Any suggestion?</p>