selinon.errors module¶
Errors and exceptions that can occur in Selinon code base.
-
exception
selinon.errors.
CacheMissError
[source]¶ Bases:
selinon.errors.SelinonException
An error raised when there is requested an item from cache that is not stored in cache.
-
exception
selinon.errors.
ConfigNotInitializedError
[source]¶ Bases:
selinon.errors.SelinonException
An error raised when the configuration was requested, but not initialized.
-
exception
selinon.errors.
ConfigurationError
[source]¶ Bases:
selinon.errors.SelinonException
Raised on errors that indicate errors in the configuration files.
-
exception
selinon.errors.
DispatcherRetry
(keep_state=True, adjust_retry_count=True)[source]¶ Bases:
selinon.errors.SelinonException
Force retry the whole flow - if flow arguments are provided, flow will continue where it was left.
-
exception
selinon.errors.
FatalTaskError
[source]¶ Bases:
selinon.errors.SelinonException
An exception that is raised by task on fatal error - task will be not retried.
-
exception
selinon.errors.
FlowError
(state)[source]¶ Bases:
selinon.errors.SelinonException
An exception that is raised once there is an error in the flow on runtime - some nodes failed.
-
state
¶ Get structured flow state.
-
-
exception
selinon.errors.
MigrationException
(*args, migration_version, latest_migration_version, tainting_nodes=None, tainted_edge=None)[source]¶ Bases:
selinon.errors.SelinonException
Base exception for migration related exceptions.
-
TAINTED_FLOW_STRATEGY
= 'UNKNOWN'¶
-
-
exception
selinon.errors.
MigrationFlowFail
(*args, migration_version, latest_migration_version, tainting_nodes=None, tainted_edge=None)[source]¶ Bases:
selinon.errors.MigrationException
An exception raised when a flow should fail - i.e. migration causing tainting of flow should fail flow.
-
TAINTED_FLOW_STRATEGY
= 'FAIL'¶
-
-
exception
selinon.errors.
MigrationFlowRetry
(*args, migration_version, latest_migration_version, tainting_nodes=None, tainted_edge=None)[source]¶ Bases:
selinon.errors.MigrationException
An exception raised when a flow should be retried - i.e. migration causing tainting of flow should retry flow.
-
TAINTED_FLOW_STRATEGY
= 'RETRY'¶
-
-
exception
selinon.errors.
MigrationNotNeeded
[source]¶ Bases:
selinon.errors.SelinonException
Raised when a migration is requested, but config changes do not require it.
-
exception
selinon.errors.
MigrationSkew
(*args, available_migration_version)[source]¶ Bases:
selinon.errors.SelinonException
Raised if worker hasn’t needed migration files.
-
exception
selinon.errors.
NoParentNodeError
[source]¶ Bases:
selinon.errors.SelinonException
An exception raised when requested parent node (task/flow), but no such parent defined.
-
exception
selinon.errors.
RequestError
[source]¶ Bases:
selinon.errors.SelinonException
An error raised if there was an issue with request issued by user - usually means bad usage error.
-
exception
selinon.errors.
Retry
(countdown)[source]¶ Bases:
selinon.errors.SelinonException
Retry task as would Celery do except you can only specify countdown for retry.
-
exception
selinon.errors.
SelectiveNoPathError
[source]¶ Bases:
selinon.errors.SelinonException
Raised when there is no path in the flow to requested node in selective task runs.
-
exception
selinon.errors.
SelinonException
[source]¶ Bases:
Exception
Base Selinon exception in exception hierarchy.
-
exception
selinon.errors.
StorageError
[source]¶ Bases:
selinon.errors.SelinonException
Raised to notify about storage errors (e.g. storage goes down).
-
exception
selinon.errors.
UnknownError
[source]¶ Bases:
selinon.errors.SelinonException
An error raised on unknown scenarios - possibly some bug in code.
-
exception
selinon.errors.
UnknownFlowError
[source]¶ Bases:
selinon.errors.SelinonException
Raised if there was requested or referenced flow that is not stated in the YAML configuration file.
-
exception
selinon.errors.
UnknownStorageError
[source]¶ Bases:
selinon.errors.SelinonException
Raised if there was requested or referenced storage that is not stated in the YAML configuration file.