class documentation

Undocumented

Method options Configure options for the function.
Class Variable args Undocumented
Class Variable func Undocumented
Class Variable kwargs Undocumented
Instance Variable conv Undocumented
Instance Variable opts Undocumented
Property id Undocumented
def options(self, *, durable: bool | None = None, encoder: Encoder[Any, str | None] | None = None, id: str | None = None, idempotency_key: str | Callable[[str], str] | None = None, non_retryable_exceptions: tuple[type[Exception], ...] | None = None, retry_policy: RetryPolicy | Callable[[Callable], RetryPolicy] | None = None, tags: dict[str, str] | None = None, timeout: float | None = None) -> Self:

Configure options for the function.

  • durable: Whether or not you want this function to be durable.
  • encoder: Configure your own data encoder.
  • id: Override the id for the function invocation.
  • idempotency_key: Define the idempotency key invocation or a function that
    receives the promise id and creates an idempotency key.
  • non_retryable_exceptions: Exceptions that ignore the retry policy of the invocation.
  • retry_policy: Define the retry policy exponential | constant | linear | never
  • tags: Add custom tags to the durable promise representing the invocation.
  • target: Target to distribute the invocation.
  • timeout: Number of seconds before the invocation times out.
args: tuple[Any, ...] =

Undocumented

func: Callable[..., Generator[Any, Any, T] | T] =

Undocumented

kwargs: dict[str, Any] =

Undocumented

Undocumented

opts: Options =

Undocumented

@property
id: str =

Undocumented