netunicorn.base.experiment.DeploymentExecutionResult¶
- class DeploymentExecutionResult(node, serialized_execution_graph, result, error=None)[source]¶
Bases:
objectStores a result (or ongoing information) of a deployment execution.
- Parameters:
node (
Node) – a node that was used for deployment.serialized_execution_graph (
bytes) – a serialized execution graph.result (
Optional[bytes]) – a result of a deployment execution.error (
Optional[str], default:None) – an error message if deployment failed.
Attributes
Returns a pipeline (execution graph) that was used for the deployment.
Returns a result of a deployment execution and logs.
A node that was used for deployment
An error message if deployment failed.
Methods
Returns an instance of DeploymentExecutionResult from a JSON representation.
- property pipeline: ExecutionGraph[source]¶
Returns a pipeline (execution graph) that was used for the deployment.
- Returns:
an execution graph that was used for the deployment.
- property result: Tuple[Result[Dict[str, List[Result[Any, Any]]], Dict[str, List[Result[Any, Any]]]], List[str]] | None[source]¶
Returns a result of a deployment execution and logs.
- Returns:
a tuple of (execution result, logs).
- classmethod from_json(data)[source]¶
Returns an instance of DeploymentExecutionResult from a JSON representation.
- Parameters:
data (
DeploymentExecutionResultRepresentation) – a JSON representation of a deployment execution result.- Returns:
DeploymentExecutionResult– an instance of DeploymentExecutionResult.