---
title: "workflows.SetTaskDisplay"
description: "Set the display label of the currently executing 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.

# workflows.SetTaskDisplay

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

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

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

```go
func SetTaskDisplay(ctx context.Context, display string) error
```

Set the display label of the currently executing task.

This function is intended to be used inside a task `Execute` method.

## Parameters

**ctx**

type: context.Context

required: true

The task execution context.
**display**

type: string

required: true

The display label to set for the current task.

## Returns

An error if the context is not a task execution context.

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

```go
func (t *ProcessScene) Execute(ctx context.Context) error {
    if err := workflows.SetTaskDisplay(
        ctx,
        "Process scene "+t.SceneID,
    ); err != nil {
        return err
    }
    return nil
}
```

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