Reference
Workflow history debugging and recommendations.
Debugging
GET /inspector/workflow-historyreturns workflow history status for an actor.- Response includes
isWorkflowEnabledandhistory. - In non-dev mode, inspector endpoints require authorization.
Recommendations
- Prefer queue-driven loops for long-lived workflows.
- Structure long-lived workflows with setup and teardown around the main loop.
- Keep actor state changes and side effects inside steps.
- Store workflow progress in
stateand broadcast updates as progress changes. - Use timeouts and rollback for external side effects.
- Write step bodies idempotently.
stateandvarsmutations from a failed attempt are never rolled back, whether the step retries ortryStep/trycatches the failure.