phenotypic.sdk_.slurm.submit_script#
- phenotypic.sdk_.slurm.submit_script(script_path: Path, dependency_job_id: str | None = None, array_index: int | None = None) str[source]#
Submit a script to SLURM via
sbatchand return the job ID.- Parameters:
- Returns:
SLURM job ID string.
- Raises:
RuntimeError – If
sbatchis not available, the submission fails, or the job ID cannot be parsed.- Return type: