> ## 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.

# Runner.register

```python theme={"system"}
def Runner.register(task: type[Task]) -> None
```

Register a task class with a reusable runner definition.

Use `register` when you want to build a runner incrementally instead of passing all task classes to the [`Runner`](https://docs-old.tilebox.com/api-reference/python/tilebox.workflows/Runner) constructor.

## Parameters

**task** `type[Task]` *required*

Task class that this runner can execute.

## Returns

`None`

```python Python theme={"system"}
from tilebox.workflows import Runner

from my_workflow.tasks import MyRootTask, MySubtask

runner = Runner()
runner.register(MyRootTask)
runner.register(MySubtask)
```


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