runtraj.execution.slurm.submit_array#

runtraj.execution.slurm.submit_array(project, pending, execution, skip_existing, compute_root)[source]#

Write a submission folder for pending releases, submit its job array, and return its job id and cluster.

The cluster is the one sbatch sent the job to when it is not the default (clusters in the Slurm options), else None. When the met files are got first (runtraj.execution.runner._to_fetch()), the fetch job is submitted before the array, which waits for it, and cancelled if sbatch refuses the array.

Return type:

tuple[str, str | None]

Parameters: