Creates an execution proto based on the information provided.
tfx.orchestration.portable.mlmd.execution_lib.prepare_execution(
metadata_handler: tfx.orchestration.metadata.Metadata
,
execution_type: metadata_store_pb2.ExecutionType,
state: metadata_store_pb2.Execution.State,
exec_properties: Optional[Mapping[Text, types.Property]] = None
) -> metadata_store_pb2.Execution
Args |
metadata_handler
|
A handler to access MLMD store.
|
execution_type
|
A metadata_pb2.ExecutionType message describing the type of
the execution.
|
state
|
The state of the execution.
|
exec_properties
|
Execution properties that need to be attached.
|
Returns |
A metadata_store_pb2.Execution message.
|