You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Connection, Explorer: transaction() supports retry on deadlock, added RetryableException
Added optional $attempts parameter. When greater than 1, any exception
implementing RetryableException on the outermost transaction triggers a
retry of the whole callback. The callback must be idempotent.
A new RetryableException marker interface is introduced; DeadlockException
and LockTimeoutException all implement it. Applications can mark their own
transient errors with the interface (e.g. optimistic lock conflicts)
to opt into automatic retries.
Nested transactions never retry on their own — the exception bubbles up
to the outermost transaction, which honors its own $attempts setting.
0 commit comments