Expand description
Task persistence trait and in-memory implementation.
TaskStore abstracts task persistence so that the server framework can
be backed by any storage engine. InMemoryTaskStore provides a
pre-allocated HashMap-based implementation suitable for testing and
single-process deployments.
Structs§
- InMemory
Task Store - In-memory
TaskStorebacked by a pre-allocatedHashMapwith secondary indexes under a singleRwLock. - Recorded
Event - One event as the log holds it: what was emitted, and where in the order.
- Task
Store Config - Configuration for
InMemoryTaskStore.
Enums§
- Artifact
Delta - What changed in a task’s artifacts, for
TaskStore::save_artifact_delta. - Idempotency
Claim - What happened when a store was asked to claim an idempotency key.
Constants§
- DEFAULT_
IDEMPOTENCY_ KEY_ TTL - How long the in-memory store keeps an idempotency key by default.
- DEFAULT_
MAX_ EVENTS_ PER_ TASK - How many events one task’s log keeps when nothing else is asked for.
- DEFAULT_
MAX_ PAGE_ SIZE - The largest page a
listcall may return, when nothing narrower is asked for.