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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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