---
title: "PollingTaskRunner.IsRequestingTasks"
description: "Report whether the polling runner is currently requesting new tasks."
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.

# PollingTaskRunner.IsRequestingTasks

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

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

```go
func (*PollingTaskRunner) IsRequestingTasks() bool
```

Report whether the polling runner is currently requesting new tasks.

## Returns

`true` if the runner is requesting new tasks.

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

```go
if runner.IsRequestingTasks() {
    slog.Info("runner is requesting tasks")
}
```

Source: https://tilebox.com/docs/api-reference/go/workflows/PollingTaskRunner.IsRequestingTasks/index.mdx
