# JobClient.retry

```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**

`Job | str`

The job or job id to retry.

## Returns

The number of tasks that were rescheduled.

```python title="Python"
nb_rescheduled = job_client.retry(job)
```
