PassThroughWithoutRetry Class
A retry mechanism that does not retry.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Constructor
PassThroughWithoutRetry()
Methods
| execute_with_retry |
Executes the given action with retry logic. |
execute_with_retry
Executes the given action with retry logic.
async execute_with_retry(action: Callable[[], Awaitable[T]]) -> Awaitable[T]
Parameters
| Name | Description |
|---|---|
|
action
Required
|
<xref:Callable>[[],<xref: Awaitable>[<xref:T>]]
The action to retry on exception. |
Returns
| Type | Description |
|---|---|
|
Awaitable[<xref:T>]
|
An awaitable that will return the result of the action. |