---
title: "Jobs.Retry"
description: "Retry a job by requeuing its failed and queued 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.

# Jobs.Retry

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

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

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

```go
func (*JobClient) Retry(
    ctx context.Context,
    jobID uuid.UUID,
) (int64, error)
```

Retry a job. All failed tasks will become queued again, and queued tasks will be picked up by runners again.

## Parameters

**jobID**

type: uuid.UUID

The id of the job to retry

## Returns

The number of tasks that were rescheduled.

## Errors

**not_found**

type: job not found

The specified job does not exist.

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

```go
nbRescheduled, err := client.Jobs.Retry(ctx,
    uuid.MustParse("0195c87a-49f6-5ffa-e3cb-92215d057ea6"),
)
```

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