Skip to content
Commit Detail

Commit f033828

Author
Joe Lee <jlee@cloudflare.com> 2024-05-28 17:46:59 -0700
Parents
c3ab2bd
Tree
378e902
Add .retryable and .overloaded properties to tunneled exception objects

...based on the `kj::Exception` type.  The intent is to provide hints to the
worker about whether a failed Durable Object operation should be retried.

For "disconnected"-type exceptions, we set the `.retryable` property to true to
indicate that the operation's failure is likely transient, and could be retried
using best practices, like randomized exponential backoff.

For "overloaded"-type exceptions, we set the `.overloaded` property to true to
indicate that retrying the operation in the short term will probably fail, and
might contribute to further failures.

We otherwise leave the properties undefined.

Implementation is behind an `ACTOR_EXCEPTION_PROPERTIES` autogate.

Files changed

1 file changed~1 modified
Showing a partial diff list due to runtime limits (time_budget).