Errors
lume_services.errors
Classes
EnvironmentNotConfiguredError
EnvironmentNotConfiguredError(
env_vars, validation_error: ValidationError
)
Bases: Exception
Error for marking unconfigured environment.
Source code in lume_services/errors.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
Attributes
env
instance-attribute
env = dict(os.environ)
env_vars
instance-attribute
env_vars = []
missing_vars
instance-attribute
missing_vars = [
var for var in self.env_vars if var not in self.env
]
message
instance-attribute
message = '%s. Evironment variables not defined: %s'
Functions
FlowNotFoundError
FlowNotFoundError(query)
Bases: Exception
Source code in lume_services/errors.py
29 30 31 32 |
|
Attributes
query
instance-attribute
query = query
message
instance-attribute
message = 'Flow not found for query: %s.'
Functions
FlowOfFlowsNotFoundError
FlowOfFlowsNotFoundError(query)
Bases: Exception
Source code in lume_services/errors.py
36 37 38 39 |
|
Attributes
query
instance-attribute
query = query
message
instance-attribute
message = 'Flow not found for query: %s.'
Functions
ProjectNotFoundError
ProjectNotFoundError(query)
Bases: Exception
Source code in lume_services/errors.py
43 44 45 46 |
|
Attributes
query
instance-attribute
query = query
message
instance-attribute
message = 'Project not found for query: %s.'
Functions
ModelNotFoundError
ModelNotFoundError(query)
Bases: Exception
Source code in lume_services/errors.py
50 51 52 53 |
|
Attributes
query
instance-attribute
query = query
message
instance-attribute
message = 'Model not found for query: %s.'
Functions
DeploymentNotFoundError
DeploymentNotFoundError(query)
Bases: Exception
Source code in lume_services/errors.py
57 58 59 60 |
|
Attributes
query
instance-attribute
query = query
message
instance-attribute
message = 'Deployment not found for query: %s.'
Functions
ParameterNotInFlowError
ParameterNotInFlowError(
parameter_name: str, flow_name: str
)
Bases: Exception
Source code in lume_services/errors.py
67 68 69 70 71 |
|
Attributes
flow_name
instance-attribute
flow_name = flow_name
parameter_name
instance-attribute
parameter_name = parameter_name
message
instance-attribute
message = 'Parameter %s not in flow %s.'
Functions
ParentFlowNotInFlowsError
ParentFlowNotInFlowsError(flow_name: str, flows: List[str])
Bases: Exception
Source code in lume_services/errors.py
75 76 77 78 79 |
|
Attributes
flow_name
instance-attribute
flow_name = flow_name
flows
instance-attribute
flows = flows
message
instance-attribute
message = 'Parent flow %s not in flows: %s'
Functions
TaskNotInFlowError
TaskNotInFlowError(
flow_name: str, project_name: str, task_name: str
)
Bases: Exception
Source code in lume_services/errors.py
83 84 85 86 87 88 89 90 |
|
Attributes
flow_name
instance-attribute
flow_name = flow_name
task_name
instance-attribute
task_name = task_name
project_name
instance-attribute
project_name = project_name
message
instance-attribute
message = 'Task %s not in flow %s.'
Functions
TaskNotCompletedError
TaskNotCompletedError(
task_slug: str, flow_id: str, flow_run_id: str
)
Bases: Exception
Source code in lume_services/errors.py
94 95 96 97 98 99 100 101 |
|
Attributes
flow_id
instance-attribute
flow_id = flow_id
flow_run_id
instance-attribute
flow_run_id = flow_run_id
task_slug
instance-attribute
task_slug = task_slug
message
instance-attribute
message = "Task with slug: %s not completed for flow_run_id: %s, flow_id: %s."
Functions
FlowFailedError
FlowFailedError(
flow_id: str,
flow_run_id: str,
exception_message: str = None,
)
Bases: Exception
Source code in lume_services/errors.py
105 106 107 108 109 110 111 112 |
|
Attributes
flow_id
instance-attribute
flow_id = flow_id
flow_run_id
instance-attribute
flow_run_id = flow_run_id
exception_message
instance-attribute
exception_message = exception_message
message
instance-attribute
message = 'Flow run: %s failed for flow_id: %s. %s'
Functions
EmptyResultError
EmptyResultError(
flow_id: str, flow_run_id: str, task_slug: Optional[str]
)
Bases: Exception
Source code in lume_services/errors.py
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
|
Attributes
flow_id
instance-attribute
flow_id = flow_id
flow_run_id
instance-attribute
flow_run_id = flow_run_id
task_slug
instance-attribute
task_slug = task_slug
message
instance-attribute
message = "Task with slug: %s for flow run: %s of flow_id: %s has no result."
Functions
LocalBackendError
LocalBackendError()
Bases: Exception
LocalBackendError indicates that a server-backend operation has been executed against the LocalBackend. Server-backend operations include flow registration and remote execution.
Source code in lume_services/errors.py
140 141 142 |
|
Attributes
message
instance-attribute
message = "Cannot run server-backend operation using LocalBackend."