runtraj.execution.pbs.job_script#
- runtraj.execution.pbs.job_script(project, execution, folder, n_tasks, *, skip_existing=True, compute_root=None)[source]#
Return the
qsubscript of a job array whose subjobs each run a share of the releases.Subjob
irunsruntraj run <project> --releases <folder>/releases.parquet --task i/n_tasks --execution <folder>/execution.yaml --cpus <cpus>with the Python that called this, and writes its log to<folder>/<i>.log. The#PBSlines come from execution’spbsblock:-J 0-<n_tasks - 1>%<n_workers>(no-Jfor one task), a chunk ofncpus=<cpus>andmem,walltime,queue,account,-V(the submitting shell’s environment, as Slurm passes it),-r y, and every other PBS resource of the block. Itssetupcommands run before the subjob, after the script exportsOMP_NUM_THREADS=1. Withskip_existing=Falseonly a subjob’s first start runs again what exists; a subjob PBS starts again after a preemption skips it.