tfx.orchestration.portable.execution_publish_utils.register_execution

Registers a new execution in MLMD.

Along with the execution:

  • the input artifacts will be linked to the execution.
  • the contexts will be linked to both the execution and its input artifacts.

metadata_handler A handler to access MLMD.
execution_type The type of the execution.
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.
exec_properties Execution properties. Will be attached to the execution.

An MLMD execution that is registered in MLMD, with id populated.