Add progress event to operation
Cancel a running operation. No-op if already completed or cancelled.
Create a new operation
Delete operation (for cleanup)
Get all operation IDs
Get events for operation, optionally filtering by timestamp
OptionalsinceTimestamp: numberRetrieve the stored result for an operation. Returns undefined if no result has been stored yet.
Get store statistics (for monitoring)
Operations with status 'cancelled'.
Operations with status 'completed'.
Operations with status 'failed'.
Operations with status 'running'.
Number of stored operations.
Check if operation exists
Returns true if the operation has been cancelled.
Mark operation as complete
Mark operation as failed
Store the final result of a completed operation (e.g. violations array). Must be called before markComplete so callers can retrieve it via get-operation-progress.
StaticgetGet singleton instance
StaticresetReset singleton instance (for testing)
Singleton store for the progress of streaming operations (deprecated
streamingpath and get-operation-progress), with TTL-based cleanup: finished operations are deleted after 5 minutes, running ones are marked failed with a timeout event after 10.Remarks
Call
setResult(operationId, result)beforemarkComplete(operationId): get-operation-progress returnsresultonly for completed operations that have one.