> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tilebox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# JobClient.retry

```python theme={"system"}
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 task runners again.

## Parameters

<ParamField path="job_or_id" type="Job | str">
  The job or job id to retry.
</ParamField>

## Returns

The number of tasks that were rescheduled.

<RequestExample>
  ```python Python theme={"system"}
  nb_rescheduled = job_client.retry(job)
  ```
</RequestExample>
