tfx.orchestration.portable.mlmd.execution_lib.prepare_execution

Creates an execution proto based on the information provided.

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.

A metadata_store_pb2.Execution message.