---
title: "TaskRunner.RegisterTasks"
description: "Register tasks that can be executed by this runner."
image: "https://tilebox.com/images/tilebox-docs-social-preview.png"
---

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

# TaskRunner.RegisterTasks

import { Fragment } from "astro/jsx-runtime";

import ApiReference from "@docs/components/ApiReference.astro";

import ParamField from "@docs/components/ParamField.astro";

```go
func (*TaskRunner) RegisterTasks(tasks ...workflows.ExecutableTask) error
```

Register tasks that can be executed by this runner.

## Parameters

**tasks**

type: []ExecutableTask

A list of task classes that this runner can execute

## Returns

An error if the tasks could not be registered.

<h2 id="request-example">Usage example</h2>

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

Source: https://tilebox.com/docs/api-reference/go/workflows/TaskRunner.RegisterTasks/index.mdx
