selinon.errors module¶
Errors and exceptions that can occur in Selinon code base.
-
exception
selinon.errors.CacheMissError[source]¶ Bases:
selinon.errors.SelinonExceptionAn error raised when there is requested an item from cache that is not stored in cache.
-
exception
selinon.errors.ConfigNotInitializedError[source]¶ Bases:
selinon.errors.SelinonExceptionAn error raised when the configuration was requested, but not initialized.
-
exception
selinon.errors.ConfigurationError[source]¶ Bases:
selinon.errors.SelinonExceptionRaised on errors that indicate errors in the configuration files.
-
exception
selinon.errors.DispatcherRetry(keep_state=True, adjust_retry_count=True)[source]¶ Bases:
selinon.errors.SelinonExceptionForce retry the whole flow - if flow arguments are provided, flow will continue where it was left.
-
exception
selinon.errors.FatalTaskError[source]¶ Bases:
selinon.errors.SelinonExceptionAn exception that is raised by task on fatal error - task will be not retried.
-
exception
selinon.errors.FlowError(state)[source]¶ Bases:
selinon.errors.SelinonExceptionAn 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.SelinonExceptionBase 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.MigrationExceptionAn 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.MigrationExceptionAn 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.SelinonExceptionRaised when a migration is requested, but config changes do not require it.
-
exception
selinon.errors.MigrationSkew(*args, available_migration_version)[source]¶ Bases:
selinon.errors.SelinonExceptionRaised if worker hasn’t needed migration files.
-
exception
selinon.errors.NoParentNodeError[source]¶ Bases:
selinon.errors.SelinonExceptionAn exception raised when requested parent node (task/flow), but no such parent defined.
-
exception
selinon.errors.RequestError[source]¶ Bases:
selinon.errors.SelinonExceptionAn 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.SelinonExceptionRetry task as would Celery do except you can only specify countdown for retry.
-
exception
selinon.errors.SelectiveNoPathError[source]¶ Bases:
selinon.errors.SelinonExceptionRaised when there is no path in the flow to requested node in selective task runs.
-
exception
selinon.errors.SelinonException[source]¶ Bases:
ExceptionBase Selinon exception in exception hierarchy.
-
exception
selinon.errors.StorageError[source]¶ Bases:
selinon.errors.SelinonExceptionRaised to notify about storage errors (e.g. storage goes down).
-
exception
selinon.errors.UnknownError[source]¶ Bases:
selinon.errors.SelinonExceptionAn error raised on unknown scenarios - possibly some bug in code.
-
exception
selinon.errors.UnknownFlowError[source]¶ Bases:
selinon.errors.SelinonExceptionRaised if there was requested or referenced flow that is not stated in the YAML configuration file.
-
exception
selinon.errors.UnknownStorageError[source]¶ Bases:
selinon.errors.SelinonExceptionRaised if there was requested or referenced storage that is not stated in the YAML configuration file.
