Skip to content

Implement a max_events policy for the EventsCBGExecutor #3213

Description

@skyegalaxy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions