How it worksΒΆ
executor.submit(function, *args, **kwargs)pickles the function and its arguments in the job folder, and submits a script running them withsbatch(or starts a subprocess, locally).The job runs
python -u -m submitit.core._submit <folder>from the submission directory: it unpickles the function, calls it, and pickles its output or its error.job.result()loads this output, or raises the error.
Files of a job, in its folder (%j: job id, %t: task id):
File |
|
Content |
|---|---|---|
|
|
function and arguments |
|
|
sbatch script (Slurm) |
|
|
stdout of each task |
|
|
stderr of each task |
|
|
output or error of each task |
submitit never deletes these files: clean the folder when you no longer need them.