-
Notifications
You must be signed in to change notification settings - Fork 4
Add backpressure to CommandExecutor write queue #459
Copy link
Copy link
Open
Labels
area:corePart of the core Hassette framework, not necessarily user-facingPart of the core Hassette framework, not necessarily user-facingenhancementNew feature or requestNew feature or requestsize:smallQuick win, < 1 hourQuick win, < 1 hour
Milestone
Description
Description
CommandExecutor._write_queue is an unbounded asyncio.Queue(). If the database is slow or the service has failed, execution records accumulate without bound until OOM.
Acceptance Criteria
- _write_queue has a bounded maxsize (e.g., 10000)
- When full, records are dropped with a rate-limited warning log
- Queue depth is observable (periodic log or metric)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:corePart of the core Hassette framework, not necessarily user-facingPart of the core Hassette framework, not necessarily user-facingenhancementNew feature or requestNew feature or requestsize:smallQuick win, < 1 hourQuick win, < 1 hour
Projects
Status
Refinement