tfx.orchestration.portable.mlmd.execution_lib.put_execution

Writes an execution-centric subgraph to MLMD.

This function mainly leverages metadata.put_execution() method to write the execution centric subgraph to MLMD.

metadata_handler A handler to access MLMD.
execution The execution to be written to MLMD.
contexts MLMD contexts to associated with the execution.
input_artifacts Input artifacts of the execution. Each artifact will be linked with the execution through an event with type INPUT. Each artifact will also be linked with every context in the contexts argument.
output_artifacts Output artifacts of the execution. Each artifact will be linked with the execution through an event with type OUTPUT. Each artifact will also be linked with every context in the contexts argument.

An MLMD execution that is written to MLMD, with id pupulated.