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

# PollingTaskRunner.HasActiveTask

```go theme={"system"}
func (*PollingTaskRunner) HasActiveTask() bool
```

Report whether the polling runner currently has an active task.

## Returns

`true` if a task is currently active.

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


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