# TaskRunner.RegisterTasks

```go
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 title="Go"
err := runner.RegisterTasks(
    &MyTask{},
    &MyOtherTask{},
)
```
