hpcflow.sdk.submission.schedulers.Scheduler#
- class hpcflow.sdk.submission.schedulers.Scheduler(shell_args=None, shebang_args=None, options=None)#
Bases:
ABC
,Generic
[JSRefType
],AppAware
Abstract base class for schedulers.
- Parameters:
Methods
Cancel one or more jobscripts.
Get the state of one or more jobscripts.
Get a command for submitting a jobscript.
Get the version of the scheduler.
Test whether particular number of cores is supported in given range of cores.
Parse the output from a submission to determine the submission ID.
Perform scheduler-specific processing to the element resources.
Wait for one or more jobscripts to complete.
Attributes
Default value for arguments on the shebang line.
Default value for arguments to the shell.
Unique properties, for hashing.
- abstract cancel_jobs(js_refs, jobscripts=None, num_js_elements=0)#
Cancel one or more jobscripts.
- abstract get_job_state_info(*, js_refs=None, num_js_elements=0)#
Get the state of one or more jobscripts.
- Parameters:
js_refs (Sequence[JSRefType] | None) –
num_js_elements (int) –
- Return type:
Mapping[str, Mapping[int | None, JobscriptElementState]]
- abstract get_submit_command(shell, js_path, deps)#
Get a command for submitting a jobscript.
- get_version_info()#
Get the version of the scheduler.
- Return type:
VersionInfo
- static is_num_cores_supported(num_cores, core_range)#
Test whether particular number of cores is supported in given range of cores.
- parse_submission_output(stdout)#
Parse the output from a submission to determine the submission ID.
- abstract process_resources(resources, scheduler_config)#
Perform scheduler-specific processing to the element resources.
Note
This mutates resources.
- Parameters:
resources (ElementResources) –
scheduler_config (SchedulerConfigDescriptor) –
- Return type:
None