Description
Implement a max_events option, which will (at the minimum) warn the user if the number of ready events in the queue exceeds this amount and optionally prevent the queue from growing unbounded.
Motivation
Currently, using the EventsCBGExecutor can result in unbounded memory growth if the system is slowed down and ready, un-serviced events stack up in the queue.
Design / Implementation Considerations
What is the desired behavior if we reach max_events? Would we want the policy to be user-configurable (don't accept new events, remove the oldest event, do nothing but warn)?
Additional Information
No response
Description
Implement a
max_eventsoption, which will (at the minimum) warn the user if the number of ready events in the queue exceeds this amount and optionally prevent the queue from growing unbounded.Motivation
Currently, using the
EventsCBGExecutorcan result in unbounded memory growth if the system is slowed down and ready, un-serviced events stack up in the queue.Design / Implementation Considerations
What is the desired behavior if we reach
max_events? Would we want the policy to be user-configurable (don't accept new events, remove the oldest event, do nothing but warn)?Additional Information
No response