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.

Returns

TypeDescription
*flyteWorkflow.TraceSpec, errorThe converted TraceSpec protobuf object or an error if unmarshaling fails.