-
Notifications
You must be signed in to change notification settings - Fork 835
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add server status update batching (#307)
* Rename method to reflect internal-only side effects * Add server event batcher trigger & default wait duration to server * Add map for pending server events to send * Refactor server event batch control vars to ServerEventStream definition This is a more natural place for these fields than the top-level SchedulerServer type, which is responsible for various types of streams. This then provides a template for implementing similar batching functionality for other stream types in the scheduler server. * Initialise server event batching control vars in object initialiser * Refactor server event update logic into fast-path & triggered subscription updater * Allow configuration of batch wait duration for server status updates This is beneficial for testing or, in the future, arguments being passed in.
- Loading branch information
Showing
2 changed files
with
52 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters