---
title: "PollingTaskRunner.HasActiveTask"
description: "Report whether the polling runner currently has an active task."
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.HasActiveTask

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

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

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

Report whether the polling runner currently has an active task.

## Returns

`true` if a task is currently active.

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

```go
if runner.HasActiveTask() {
    slog.Info("runner has an active task")
}
```

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