netunicorn.base.experiment.DeploymentExecutionResult

class DeploymentExecutionResult(node, serialized_execution_graph, result, error=None)[source]

Bases: object

Stores 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

pipeline

Returns a pipeline (execution graph) that was used for the deployment.

result

Returns a result of a deployment execution and logs.

node

A node that was used for deployment

error

An error message if deployment failed.

Methods

from_json

Returns an instance of DeploymentExecutionResult from a JSON representation.

node: Node[source]

A node that was used for deployment

error: Optional[str][source]

An error message if deployment failed.

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.