qtoolkit.manager module#
- class qtoolkit.manager.QueueManager(scheduler_io: BaseSchedulerIO, host: BaseHost = None)[source]#
Bases:
QTKObject
Base class for job queues.
- scheduler_io#
Name of the queue
- Type:
str
- cancel(job: QJob | int | str) CancelResult [source]#
- execute_cmd(cmd: str, workdir: str | Path | None = None)[source]#
Execute a command.
- Parameters:
cmd (str) – Command to be executed
workdir (str or None) – path where the command will be executed.
- Returns:
stdout (str)
stderr (str)
exit_code (int)
- get_jobs_list(jobs: list[QJob | int | str] | None = None, user: str | None = None) list[QJob] [source]#
- get_submission_script(commands: str | list[str] | None, options: dict | QResources | None = None, work_dir: str | Path | None = None, pre_run: str | list[str] | None = None, post_run: str | list[str] | None = None, environment=None) str [source]#
- submit(commands: str | list[str] | None, options=None, work_dir=None, environment=None, script_fname='submit.script', create_submit_dir=False) SubmissionResult [source]#