tfx.orchestration.experimental.core.task_gen_utils.generate_task_from_active_execution

Generates task from active execution (if any).

Returns None if a task cannot be generated from active execution.

metadata_handler A handler to access MLMD db.
pipeline The pipeline containing the node.
node The pipeline node for which to generate a task.
executions A sequence of all executions for the given node.

A Task proto if active execution exists for the node. None otherwise.

RuntimeError If there are multiple active executions for the node.