# RetryStrategy

**Package:** `flyte`

Retry strategy for a task.

## Parameters

```python
class RetryStrategy(
    count: int,
    backoff: typing.Optional[flyte._retry.Backoff],
)
```
| Parameter | Type | Description |
|-|-|-|
| `count` | `int` | Number of user retries. ``count=0`` disables retries. |
| `backoff` | `typing.Optional[flyte._retry.Backoff]` | Optional When unset, retries fire immediately back-to-back. |

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/api-reference/flyte-sdk/packages/flyte/retrystrategy.md
**HTML**: https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte/retrystrategy/
