> ## Documentation Index
> Fetch the complete documentation index at: https://docs-old.tilebox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# TaskRunner.RegisterTasks

```go theme={"system"}
func (*TaskRunner) RegisterTasks(tasks ...workflows.ExecutableTask) error
```

Register tasks that can be executed by this runner.

## Parameters

**tasks** `[]ExecutableTask`

A list of task classes that this runner can execute

## Returns

An error if the tasks could not be registered.

```go Go theme={"system"}
err := runner.RegisterTasks(
    &MyTask{},
    &MyOtherTask{},
)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.