mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
5b7c38da7f
The notifier is scheduled to run once per second. Currently, it simply polls for the next update in the queue. However, when there are multiple updates queued up, there is no reason to wait for subsequent runs in order to execute the rest of the updates. This commit changes the notifier to drain the queue each time it runs. It then serially executes the updates. relates elastic/x-pack-elasticsearch#3769 Original commit: elastic/x-pack-elasticsearch@7a433c17f2