---
title: "TaskRunner.run_forever"
description: "Run the runner continuously, polling for new tasks when idle."
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.run_forever

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

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

```python
def TaskRunner.run_forever()
```

Run the runner forever. This will poll for new tasks and execute them as they come in.
If no tasks are available, it will sleep for a short time and then try again.

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

```python
# run forever, until the current process
# is stopped
runner.run_forever()
```

Source: https://tilebox.com/docs/api-reference/python/tilebox.workflows/TaskRunner.run_forever/index.mdx
