mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed? <!-- Describe what has changed in this PR --> Apply effects immediately after mutable state is persisted. ## Why? <!-- Tell your future self why have you made these changes --> Bug fix. Previously, if error happens after mutable state is persisted, `defer` block rolled back accumulated effects changes and left update registry in inconsistent state. ## How did you test it? <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> Run different load test scenarios with fault injection enabled. ## Potential risks <!-- Assuming the worst case, what can be broken when deploying this change to production? --> No risks, bug fix. ## Is hotfix candidate? <!-- Is this PR a hotfix candidate or does it require a notification to be sent to the broader community? (Yes/No) --> No.