mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed? Added `serviceerror.DataLoss` to `IsPersistenceTransientError()` so that we can retry on these errors. The number of times to retry is configured by the retry policy (which is max 2 attempts) ## Why? We've observed that the persistence layer may not always be reliable especially when you read immediately after writing. With this change we retry once before giving up. ## How did you test it? Added unit tests ## Potential risks If the retry policy is modified in the future, we may retry more than once. ## Documentation N/A ## Is hotfix candidate? No