OutputWriter
This class provides an interface to write back the outputs to the engine. It includes methods to put output accessors to the framework once a task completes.
Methods
Put()
@classmethod
def Put(
ctx: context.Context,
reader: [OutputReader](outputreader.md?sid=flyteplugins_go_tasks_pluginmachinery_io_outputreader)
) - > error
Once the task completes, use this method to indicate the output accessor to the framework
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for the operation, allowing for cancellation and deadlines. |
| reader | [OutputReader](outputreader.md?sid=flyteplugins_go_tasks_pluginmachinery_io_outputreader) | The OutputReader providing access to the task's output. |
Returns
| Type | Description |
|---|---|
error | An error if the operation fails, otherwise nil. |