func (*Client) NewTaskRunner(
ctx context.Context,
options ...runner.Option,
) (*workflows.TaskRunner, error)
Initialize a task runner.
Parameters
Options for initializing the task runner
Options
WithClusterSlug(clusterSlug string)
The cluster to connect to. If not provided, the default cluster is used.
WithRunnerLogger(logger *slog.Logger)
Set the logger to use for the task runner
Disable OpenTelemetry metrics for the task runner
Returns
The created task runner object.
runner, err := client.NewTaskRunner(ctx)