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
| Name | Type | Description |
|---|---|---|
| specModel | *models.TaskSpec | The TaskSpec model containing the specification data to be converted into a TraceSpec. |
Returns
| Type | Description |
|---|---|
*flyteWorkflow.TraceSpec, error | A pointer to the converted TraceSpec protobuf message and an error if the unmarshalling fails. |