Errors
DeploymentNotFoundError
Bases: Exception
Source code in lume_services/errors.py
93 94 95 96 97 98 99 100 101 102 |
|
__init__(query)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query
|
dict
|
Dictionary representation of mongodb query. |
required |
Source code in lume_services/errors.py
94 95 96 97 98 99 100 101 102 |
|
DeploymentNotRegisteredError
Bases: Exception
DeploymentNotRegisteredError indicates that a deployment was not found for the given model. If no deployment_id is passed, assumes that the user is attempting to load the latest deployment for that model.
Source code in lume_services/errors.py
233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 |
|
__init__(model_id, deployment_id=None)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model_id
|
int
|
ID of model. |
required |
deployment_id
|
Optional[int]
|
Deployment ID that was attempted to retrieve. |
None
|
Source code in lume_services/errors.py
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 |
|
EmptyResultError
Bases: Exception
Error raised when a result is empty.
Source code in lume_services/errors.py
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
|
__init__(flow_id, flow_run_id, task_slug=None)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
flow_id
|
str
|
ID of the flow.s |
required |
flow_run_id
|
str
|
ID of the flow run. |
required |
task_slug
|
Optional[str]
|
Prefect tasks are assigned slugs. The task slug is the identifier for the task for which we're trying to load the result. |
None
|
Source code in lume_services/errors.py
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
|
EnvironmentNotConfiguredError
Bases: Exception
Error used to mark an unconfigured environment.
Source code in lume_services/errors.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|
__init__(env_vars, validation_error=None)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
env_vars
|
Dict[str, str]
|
Dictionary mapping service to list of environment variables used to configure that service. |
required |
validation_error
|
ValidationError
|
ValidationError raised by Pydantic class during assignment. |
None
|
Source code in lume_services/errors.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|
FlowFailedError
Bases: Exception
Error raised when a flow fails to execute successfully.
Source code in lume_services/errors.py
175 176 177 178 179 180 181 182 183 184 185 186 187 |
|
FlowNotFoundError
Bases: Exception
Source code in lume_services/errors.py
43 44 45 46 47 48 49 50 51 52 53 |
|
__init__(query)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query
|
dict
|
Dictionary representation of mongodb query. |
required |
Source code in lume_services/errors.py
44 45 46 47 48 49 50 51 52 53 |
|
FlowOfFlowsNotFoundError
Bases: Exception
Source code in lume_services/errors.py
56 57 58 59 60 61 62 63 64 65 |
|
__init__(query)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query
|
dict
|
Dictionary representation of mongodb query. |
required |
Source code in lume_services/errors.py
57 58 59 60 61 62 63 64 65 |
|
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
221 222 223 224 225 226 227 228 229 230 |
|
MissingEnvironmentYamlError
Bases: Exception
Error raised when a model package directory is missing an environment.yml spec.
Source code in lume_services/errors.py
361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 |
|
__init__(directory)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
directory
|
str
|
Local directory holding the package source. |
required |
Source code in lume_services/errors.py
367 368 369 370 371 372 373 374 375 376 |
|
ModelNotFoundError
Bases: Exception
Source code in lume_services/errors.py
81 82 83 84 85 86 87 88 89 90 |
|
__init__(query)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query
|
dict
|
Dictionary representation of mongodb query. |
required |
Source code in lume_services/errors.py
82 83 84 85 86 87 88 89 90 |
|
NoCondaEnvironmentFoundError
Bases: Exception
Error raised when CONDA_PREFIX is not defined.
Source code in lume_services/errors.py
379 380 381 382 383 |
|
NoFlowFoundInPackageError
Bases: Exception
Error raised when flow not found at a given entrypoint.
Source code in lume_services/errors.py
386 387 388 389 390 391 392 393 394 395 396 397 |
|
__init__(source_path)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
source_path
|
str
|
Import path of the flow provided to entrypoint. |
required |
Source code in lume_services/errors.py
389 390 391 392 393 394 395 396 397 |
|
NoPackagesToInstallError
Bases: Exception
Error indicates no packages were returned from environment resolution.
Source code in lume_services/errors.py
277 278 279 280 281 282 |
|
ParentFlowNotInFlowsError
Bases: Exception
Error raised when composing flow-of-flows when the parent flow is not found in the list of flows.
Source code in lume_services/errors.py
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
|
__init__(flow_name, flows)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
flow_name
|
str
|
Name of parent flow |
required |
flows
|
List[str]
|
List of flows provided |
required |
Source code in lume_services/errors.py
122 123 124 125 126 127 128 129 130 131 132 |
|
PathNotInMount
Bases: Exception
Error raised when the path provided does not exist in a mounted filesystem.
Source code in lume_services/errors.py
400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 |
|
__init__(filesystem_identifier, path, mount_path, mount_alias)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filesystem_identifier
|
str
|
Identifier of the filesystem to use. |
required |
path
|
str
|
Path that was not found. |
required |
mount_path
|
str
|
Original path of the mounted directory on host. |
required |
mount_alias
|
str
|
Alias used in mount the filesystem. |
required |
Source code in lume_services/errors.py
403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 |
|
ProjectNotFoundError
Bases: Exception
Source code in lume_services/errors.py
68 69 70 71 72 73 74 75 76 77 78 |
|
__init__(query)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query
|
dict
|
Dictionary representation of mongodb query. |
required |
Source code in lume_services/errors.py
69 70 71 72 73 74 75 76 77 78 |
|
TaskNotCompletedError
Bases: Exception
Error raised when a task fails to execute successfully.
Source code in lume_services/errors.py
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 |
|
__init__(task_slug, flow_id, flow_run_id)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
task_slug
|
str
|
Slug of the task that was not completed. |
required |
flow_id
|
str
|
ID of Prefect flow. |
required |
flow_run_id
|
str
|
ID of Prefect Flow run. |
required |
Source code in lume_services/errors.py
159 160 161 162 163 164 165 166 167 168 169 170 171 172 |
|
TaskNotInFlowError
Bases: Exception
Error raised to indicate that the given task is not in a flow.
Source code in lume_services/errors.py
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
|
__init__(flow_name, project_name, task_name)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
flow_name
|
str
|
Name of flow |
required |
project_name
|
str
|
Name of project |
required |
task_name
|
str
|
Name of task |
required |
Source code in lume_services/errors.py
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
|
UnableToIndexLocalChannelError
Bases: Exception
Error raised when unable to index the local channel during conda environment resolution to local channel.
Source code in lume_services/errors.py
333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 |
|
__init__(local_channel_directory, return_code, output)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
local_channel_directory
|
str
|
Directory holding local channel. |
required |
return_code
|
int
|
Return code of the subprocess. |
required |
output
|
str
|
Output of the subprocess. |
required |
Source code in lume_services/errors.py
339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 |
|
UnableToInstallCondaDependenciesError
Bases: Exception
Error indicating that certain conda dependencies were not installed during resolution.
Source code in lume_services/errors.py
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 |
|
__init__(conda_dependencies)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
conda_dependencies
|
List[str]
|
List of conda dependencies that were not installed. |
required |
Source code in lume_services/errors.py
291 292 293 294 295 296 297 298 299 300 |
|
UnableToInstallPipDependenciesError
Bases: Exception
Error indicating failed pip installation.
Source code in lume_services/errors.py
303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 |
|
__init__(pip_dependencies, python_version, platform, e)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pip_dependencies
|
List[str]
|
List of dependencies to be installed with pip |
required |
python_version
|
float
|
Python version used for installation |
required |
platform
|
Literal['linux-64', 'linux-32', 'osx-64', 'win-32', 'win-64']
|
Platform used for installation |
required |
e
|
Exception
|
Exception raised from installation subprocess |
required |
Source code in lume_services/errors.py
306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 |
|
WritePermissionError
Bases: Exception
Error indicates missing write permission on a directory.
Source code in lume_services/errors.py
261 262 263 264 265 266 267 268 269 270 271 272 273 274 |
|
__init__(directory)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
directory
|
str
|
Directory that is missing write permissions. |
required |
Source code in lume_services/errors.py
264 265 266 267 268 269 270 271 272 273 274 |
|