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 --> Abort all updates if workflow is terminated or timed out. ## Why? <!-- Tell your future self why have you made these changes --> For better DX. W/o this PR updates will just timeout. ## How did you test it? <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> Need to add tests. ## Potential risks <!-- Assuming the worst case, what can be broken when deploying this change to production? --> No risks. ## 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/`? --> No. ## 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.
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