Add revision tracking and compare-and-set (CAS) semantics to operation state stores, enabling atomic state transitions and preventing lost updates. Extend the OperationStateStore interface with getOpStateRecord and compareAndSetOpState methods. Update orchestrator and worker runtime to utilize CAS for marking operations as failed only if the state is unchanged. Enhance in-memory, JetStream, and test control plane implementations to support revision logic. This change improves concurrency safety and correctness of operation state management across distributed components.
4 lines
113 B
TypeScript
4 lines
113 B
TypeScript
export * from './types';
|
|
export * from './state-machine';
|
|
export * from './orchestrator';
|
|
export * from './sse';
|