I would add a ```no_distribute``` flag here as this function is also used in QA tests (and we don't want to test only in no-distribution mode). Morever, I would check for the correct final job status (as before we were checking for a successful the exit code).