Skip to main content

ToTraceSpec

Converts a TaskSpec model to a TraceSpec protobuf message by unmarshalling the Spec field of the model.

def ToTraceSpec(
specModel: *models.TaskSpec
) - > *flyteWorkflow.TraceSpec, error

Converts a TaskSpec model to a proto TraceSpec, allowing for the representation of task specifications in a protobuf format.

Parameters

NameTypeDescription
specModel*models.TaskSpecThe TaskSpec model containing the specification data to be converted into a TraceSpec.

Returns

TypeDescription
*flyteWorkflow.TraceSpec, errorA pointer to the converted TraceSpec protobuf message and an error if the unmarshalling fails.