---
title: "TaskRunner.GetRegisteredTask"
description: "Get the task with the given identifier."
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.GetRegisteredTask

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

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

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

```go
func (*TaskRunner) GetRegisteredTask(
  identifier workflows.TaskIdentifier,
) (workflows.ExecutableTask, bool)
```

Get the task with the given identifier.

## Parameters

**identifier**

type: TaskIdentifier

The identifier of the registered task.

## Returns

The registered task. Returns `false` if not found.

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

```go
identifier := workflows.NewTaskIdentifier(
    "my-task",
    "v1.0",
)

task, found := runner.GetRegisteredTask(
    identifier,
)
```

Source: https://tilebox.com/docs/api-reference/go/workflows/TaskRunner.GetRegisteredTask/index.mdx
