qp.manager.submit.submit_jobs¶
- qp.manager.submit.submit_jobs(prepared_jobs, scheduler)[source]¶
Submit prepared jobs to the cluster scheduler.
Iterates through the prepared job list and submits each using the appropriate scheduler command (
sbatchfor SLURM,qsubfor SGE). Creates a.submit_recordfile for each submitted job.- Parameters:
prepared_jobs (list of tuple) – Jobs to submit, as returned by
prepare_jobs().scheduler (str) – Scheduler type (
'slurm'or'sge').
- Returns:
Number of jobs successfully submitted.
- Return type:
int