Class FailurePolicy (1.8.1)

FailurePolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Describes the policy in case of function's execution failure. If empty, then defaults to ignoring failures (i.e. not retrying them).

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attribute

NameDescription
retry google.cloud.functions_v1.types.FailurePolicy.Retry
If specified, then the function will be retried in case of a failure. This field is a member of `oneof`_ ``action``.

Inheritance

builtins.object > proto.message.Message > FailurePolicy

Classes

Retry

Retry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Describes the retry policy in case of function's execution failure. A function execution will be retried on any failure. A failed execution will be retried up to 7 days with an exponential backoff (capped at 10 seconds). Retried execution is charged as any other execution.