hpcflow.sdk.submission.schedulers.NullScheduler#

class hpcflow.sdk.submission.schedulers.NullScheduler(shell_args=None, shebang_args=None, options=None)#

Bases: object

Abstract base class for schedulers.

Keyword Arguments:
  • shell_args (str) – Arguments to pass to the shell. Pre-quoted.

  • shebang_args (str) – Arguments to set on the shebang line. Pre-quoted.

  • options (dict) – Options to the scheduler.

Methods

get_version_info

Get the version of the scheduler.

is_num_cores_supported

Test whether particular number of cores is supported in given range of cores.

parse_submission_output

Parse the output from a submission to determine the submission ID.

Attributes

DEFAULT_SHEBANG_ARGS

Default value for arguments on the shebang line.

DEFAULT_SHELL_ARGS

Default value for arguments to the shell.

unique_properties

Unique properties, for hashing.

DEFAULT_SHEBANG_ARGS = ''#

Default value for arguments on the shebang line.

DEFAULT_SHELL_ARGS = ''#

Default value for arguments to the shell.

get_version_info()#

Get the version of the scheduler.

static is_num_cores_supported(num_cores, core_range)#

Test whether particular number of cores is supported in given range of cores.

Parameters:

core_range (List[int]) –

parse_submission_output(stdout)#

Parse the output from a submission to determine the submission ID.

Parameters:

stdout (str) –

Return type:

None

property unique_properties#

Unique properties, for hashing.