Abstract
swerex.deployment.abstract.AbstractDeployment
AbstractDeployment(*args, **kwargs)
Bases: ABC
Source code in swerex/deployment/abstract.py
12 13 |
|
logger
instance-attribute
logger: Logger
runtime
abstractmethod
property
runtime: AbstractRuntime
Returns the runtime if running.
Raises:
Type | Description |
---|---|
DeploymentNotStartedError
|
If the deployment was not started. |
__del__
__del__()
Stops the runtime when the object is deleted.
Source code in swerex/deployment/abstract.py
44 45 46 47 48 49 50 51 52 53 54 55 56 |
|
add_hook
abstractmethod
add_hook(hook: DeploymentHook)
Source code in swerex/deployment/abstract.py
15 16 |
|
is_alive
abstractmethod
async
is_alive(*, timeout: float | None = None) -> IsAliveResponse
Checks if the runtime is alive. The return value can be tested with bool().
Raises:
Type | Description |
---|---|
DeploymentNotStartedError
|
If the deployment was not started. |
Source code in swerex/deployment/abstract.py
18 19 20 21 22 23 24 25 |
|
start
abstractmethod
async
start(*args, **kwargs)
Starts the runtime.
Source code in swerex/deployment/abstract.py
27 28 29 |
|
stop
abstractmethod
async
stop(*args, **kwargs)
Stops the runtime.
Source code in swerex/deployment/abstract.py
31 32 33 |
|