Debugged version of job_submit/all_partitions