hpcflow.sdk.core.errors#

Errors from the workflow system.

Exceptions

ActionEnvironmentMissingNameError(environment)

An action environment was missing its name.

ContainerKeyError(path)

A key could not be mapped in a container.

DuplicateExecutableError(duplicate_labels)

The same executable was present twice in an executable environment.

EnvironmentPresetUnknownEnvironmentError(...)

An environment preset could not be resolved to an execution environment.

EnvironmentSpecValidationError

An environment specification failed to validate.

ExtraInputs(extra_inputs)

Extra inputs were provided.

FileSpecValidationError

A file specification failed to validate.

FromSpecMissingObjectError

Missing object when deserialising from specification.

InapplicableInputSourceElementIters(source, ...)

An input source element iteration was inapplicable.

IncompatibleParallelModeError(parallel_mode)

The parallel mode is incompatible.

IncompatibleSGEPEError(env_name, num_cores)

The SGE parallel environment selected is incompatible.

IncompatibleSLURMArgumentsError(msg)

The SLURM arguments are incompatible with each other.

IncompatibleSLURMPartitionError(part_name, ...)

The requested SLURM partition is incompatible.

InputSourceValidationError

An input source failed to validate.

InputValueDuplicateSequenceAddress

An InputValue has the same sequence address twice.

InvalidIdentifier(name)

A bad identifier name was given.

InvalidInputSourceTaskReference(input_source)

Invalid input source in task reference.

JobscriptSubmissionFailure(message, *, ...)

A job script could not be submitted to the scheduler.

LoopAlreadyExistsError(loop_name, loops)

A particular loop (or its name) already exists.

LoopTaskSubsetError(loop_name, task_indices)

Problem constructing a subset of a task for a loop.

MalformedNestingOrderPath(k, ...)

A nesting order path was ill-formed.

MalformedParameterPathError(msg)

The path to a parameter was ill-formed.

MalformedWorkflowError

Workflow was a malformed document.

MayNeedObjectError(path)

An object is needed but not present.

MissingActionEnvironment

Could not find an action environment.

MissingCompatibleActionEnvironment(msg)

Could not find a compatible action environment.

MissingElementGroup(task_name, group_name, ...)

An element group should exist but doesn't.

MissingEnvironmentError(env_spec)

There is no environment with that name.

MissingEnvironmentExecutableError(env_spec, ...)

The environment does not have the requested executable at all.

MissingEnvironmentExecutableInstanceError(...)

The environment does not have a suitable instance of the requested executable.

MissingInputs(missing_inputs)

Inputs were missing.

MissingParameterData(id_lst)

Some parameter IDs do not exist

MissingStoreEARError(id_lst)

Some EAR IDs do not exist.

MissingStoreElementError(id_lst)

Some element IDs do not exist.

MissingStoreElementIterationError(id_lst)

Some element iteration IDs do not exist.

MissingStoreTaskError(id_lst)

Some task IDs do not exist.

MissingVariableSubstitutionError(var_name, ...)

No definition available of a variable being substituted.

MultipleEnvironmentsError(env_spec)

Multiple applicable execution environments exist.

NoAvailableElementSetsError()

No element set is available.

NoCLIFormatMethodError(method, inp_val)

Some CLI class lacks a format method

NoCoincidentInputSources(name, task_ref)

Could not line up input sources to make an actual valid execution.

NoCompatibleSGEPEError(num_cores)

No SGE parallel environment is compatible with request.

NotSubmitMachineError()

The requested machine can't be submitted to.

OutputFileParserNoOutputError()

There was no output for the output file parser to parse.

ParameterSpecValidationError

A parameter specification failed to validate.

ResourceValidationError

An incompatible resource requested by the user.

RunNotAbortableError()

Cannot abort the run.

SchedulerVersionsFailure(message)

We couldn't get the scheduler and or shell versions.

SubmissionEnvironmentError

Raised when submitting a workflow on a machine without a compatible environment.

SubmissionFailure(sub_idx, submitted_js_idx, ...)

A job submission failed.

TaskSchemaMissingParameterError

Parameter was missing from task schema.

TaskSchemaSpecValidationError

A task schema failed to validate.

TaskTemplateInvalidNesting(key, value)

Invalid nesting in a task template.

TaskTemplateMultipleInputValues(msg)

A TaskTemplate had multiple input values bound over each other.

TaskTemplateMultipleSchemaObjectives(names)

A TaskTemplate has multiple objectives.

TaskTemplateUnexpectedInput(unexpected_types)

A TaskTemplate was given unexpected input.

TaskTemplateUnexpectedSequenceInput(...)

A TaskTemplate was given an unexpected sequence.

ToJSONLikeChildReferenceError

Failed to generate or reference a child object when converting to JSON.

UnavailableInputSource(source, path, avail)

An input source was not available.

UnknownEnvironmentPresetError(preset_name, ...)

An execution environment was unknown.

UnknownResourceSpecItemError(msg)

A resource specification item was not found.

UnknownSGEPEError(env_name, all_env_names)

Miscellaneous error from SGE parallel environment.

UnknownSLURMPartitionError(part_name, all_parts)

The requested SLURM partition isn't known.

UnknownScriptDataKey(key, allowed_keys)

Unknown key in script data.

UnknownScriptDataParameter(name, kind, ...)

Unknown parameter in script data.

UnrequiredInputSources(unrequired_sources)

Input sources were provided that were not required.

UnsetParameterDataError(path, path_i)

Tried to read from an unset parameter.

UnsupportedOSError(os_name)

This machine is not of the requested OS.

UnsupportedSchedulerError(scheduler[, ...])

This scheduler is not supported on this machine according to the config.

UnsupportedScriptDataFormat(data, kind, ...)

That format of script data is not supported.

UnsupportedShellError(shell, supported)

We don't support this shell on this OS.

ValuesAlreadyPersistentError

Trying to make a value persistent that already is so.

WorkflowBatchUpdateFailedError

An update to a workflow failed.

WorkflowLimitsError

Workflow hit limits.

WorkflowNotFoundError(path, fs)

Could not find the workflow.

WorkflowParameterMissingError

A parameter to a workflow was missing.

WorkflowSpecValidationError

A workflow failed to validate.

WorkflowSubmissionFailure(exceptions)

A workflow submission failed.