mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-30 14:56:19 +00:00
## What changed? <!-- Describe what has changed in this PR --> I think the problem was that it didn't wait long enough to receive the abort (from `Clear()`). Now with the wait stage, I expect this to be fixed. ## Why? <!-- Tell your future self why have you made these changes --> ## How did you test it? <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> ## Potential risks <!-- Assuming the worst case, what can be broken when deploying this change to production? --> ## Documentation <!-- Have you made sure this change doesn't falsify anything currently stated in `docs/`? If significant new behavior is added, have you described that in `docs/`? --> ## Is hotfix candidate? <!-- Is this PR a hotfix candidate or does it require a notification to be sent to the broader community? (Yes/No) -->
Update State Machine
The diagram below depicts the state machine implemented in update.go.
stateDiagram-v2
[*] --> Admitted: New
Admitted --> ProvisionallyRequested: onRequestMsg
ProvisionallyRequested --> Requested: commit
Requested --> ProvisionallyAccepted: onAcceptanceMsg
ProvisionallyAccepted --> Accepted: commit
Requested --> ProvisionallyCompleted: onRejectionMsg
ProvisionallyCompleted --> Completed: commit
ProvisionallyAccepted --> ProvisionallyCompleted: onResponse
Accepted --> ProvisionallyCompleted: onResponse