Shutdown drain with timeout and abandoned-write tracking #720

Closed
opened 2026-10-27 13:37:28 +00:00 by sam · 0 comments
Owner

Implement graceful shutdown drain for MemoryManager with a bounded timeout. In-flight sync operations are given a configurable deadline to complete. Operations that don't finish within the deadline are tracked as abandoned writes for diagnostics.

Acceptance Criteria

Shutdown(ctx) method on MemoryManager with context-based deadline
In-flight sync pipeline operations are given N seconds (default 10) to complete
Abandoned writes (those exceeding the deadline) are logged with: provider name, operation type, age
shutdown() is called on all active providers in reverse registration order
After shutdown, no new operations are accepted
Provider shutdown respects the same deadline
Abandoned-write counter is accessible for health/status reporting


Imported from beads archie-core-1786637494913-195-df92d717 · GitHub #216 · type task · priority P2 · created 2026-08-08 · closed 2026-08-08

Implement graceful shutdown drain for MemoryManager with a bounded timeout. In-flight sync operations are given a configurable deadline to complete. Operations that don't finish within the deadline are tracked as abandoned writes for diagnostics. ### Acceptance Criteria Shutdown(ctx) method on MemoryManager with context-based deadline In-flight sync pipeline operations are given N seconds (default 10) to complete Abandoned writes (those exceeding the deadline) are logged with: provider name, operation type, age shutdown() is called on all active providers in reverse registration order After shutdown, no new operations are accepted Provider shutdown respects the same deadline Abandoned-write counter is accessible for health/status reporting --- _Imported from beads `archie-core-1786637494913-195-df92d717` · GitHub #216 · type task · priority P2 · created 2026-08-08 · closed 2026-08-08_
sam added the mediumtask labels 2026-10-27 13:37:28 +00:00
sam self-assigned this 2026-10-27 13:37:28 +00:00
sam closed this issue 2026-10-27 13:37:28 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#720