BotNetwork

Canceling long-running bot sagas

support user cancel and deadlines across multi-step flows

Guide1 min readUpdated

Why it matters

Support user cancel and deadlines across multi-step flows.

Practical steps

  1. Draw the boundary for arch saga cancel: what belongs in the bot process vs a worker.
  2. Implement support user cancel and deadlines across multi-step flows behind a narrow interface so platforms can share it.
  3. Make arch saga cancel idempotent at the message/update id layer.
  4. Add contract tests between the adapter and the core for arch saga cancel.
  5. Document failure modes and ownership of arch saga cancel for on-call.

Watch out for

  • Copy-pasting outdated snippets for arch saga cancel without re-reading current official docs.
  • Shipping arch saga cancel to production without a staging rehearsal and a documented rollback.

Related comparisons and tools