---
title: "JobClient.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.

# JobClient.retry

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

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

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

```python
def JobClient.retry(job_or_id: Job | str) -> int
```

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

## Parameters

**job_or_id**

type: Job | str

The job or job id to retry.

## Returns

The number of tasks that were rescheduled.

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

```python
nb_rescheduled = job_client.retry(job)
```

Source: https://tilebox.com/docs/api-reference/python/tilebox.workflows/JobClient.retry/index.mdx
