File tree Expand file tree Collapse file tree 8 files changed +35
-0
lines changed
Expand file tree Collapse file tree 8 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -122,10 +122,14 @@ public function loop() {
122122 $ this ->StorageBackend ->saveHostcheck (
123123 $ Hostcheck
124124 );
125+
126+ // Dispatch for bulk messages from queue
127+ $ this ->StorageBackend ->dispatch ();
125128 $ this ->Statistics ->increase ();
126129 }
127130 }
128131
132+ // Dispatch for single messages and timeout checks
129133 $ this ->StorageBackend ->dispatch ();
130134
131135 $ this ->Statistics ->dispatch ();
Original file line number Diff line number Diff line change @@ -174,12 +174,16 @@ public function loop() {
174174 $ this ->StorageBackend ->saveHoststatus (
175175 $ Hoststatus
176176 );
177+
178+ // Dispatch for bulk messages from queue
179+ $ this ->StorageBackend ->dispatch ();
177180 }
178181
179182 $ this ->Statistics ->increase ();
180183 }
181184 }
182185
186+ // Dispatch for single messages and timeout checks
183187 if ($ this ->storeLiveDateInArchive ) {
184188 $ this ->StorageBackend ->dispatch ();
185189 }
Original file line number Diff line number Diff line change @@ -123,10 +123,14 @@ public function loop() {
123123 $ this ->StorageBackend ->saveLogentry (
124124 $ Logentry
125125 );
126+
127+ // Dispatch for bulk messages from queue
128+ $ this ->StorageBackend ->dispatch ();
126129 $ this ->Statistics ->increase ();
127130 }
128131 }
129132
133+ // Dispatch for single messages and timeout checks
130134 $ this ->StorageBackend ->dispatch ();
131135
132136 $ this ->Statistics ->dispatch ();
Original file line number Diff line number Diff line change @@ -152,9 +152,13 @@ public function loop() {
152152 if (property_exists ($ jobJson , 'downtime ' )) {
153153 $ this ->handleDowntime ($ jobJson );
154154 }
155+
156+ // Dispatch for bulk messages from queue
157+ $ this ->StorageBackend ->dispatch ();
155158 }
156159 }
157160
161+ // Dispatch for bulk messages from queue
158162 $ this ->StorageBackend ->dispatch ();
159163
160164 $ this ->Statistics ->dispatch ();
Original file line number Diff line number Diff line change @@ -158,9 +158,16 @@ public function loop() {
158158 }
159159 $ this ->Statistics ->increase ();
160160 }
161+
162+ // Dispatch for bulk messages from queue
163+ foreach ($ perfdataStorageBackends as $ key => $ backend ) {
164+ $ perfdataStorageBackends [$ key ]->dispatch ();
165+ }
166+
161167 }
162168 }
163169
170+ // Dispatch for single messages and timeout checks
164171 foreach ($ perfdataStorageBackends as $ key => $ backend ) {
165172 $ perfdataStorageBackends [$ key ]->dispatch ();
166173 }
Original file line number Diff line number Diff line change @@ -122,10 +122,14 @@ public function loop() {
122122 $ this ->StorageBackend ->saveServicecheck (
123123 $ Servicecheck
124124 );
125+
126+ // Dispatch for bulk messages from queue
127+ $ this ->StorageBackend ->dispatch ();
125128 $ this ->Statistics ->increase ();
126129 }
127130 }
128131
132+ // Dispatch for single messages and timeout checks
129133 $ this ->StorageBackend ->dispatch ();
130134
131135 $ this ->Statistics ->dispatch ();
Original file line number Diff line number Diff line change @@ -172,12 +172,16 @@ public function loop() {
172172 $ this ->StorageBackend ->saveServicestatus (
173173 $ Servicestatus
174174 );
175+
176+ // Dispatch for bulk messages from queue
177+ $ this ->StorageBackend ->dispatch ();
175178 }
176179
177180 $ this ->Statistics ->increase ();
178181 }
179182 }
180183
184+ // Dispatch for single messages and timeout checks
181185 if ($ this ->storeLiveDateInArchive ) {
182186 $ this ->StorageBackend ->dispatch ();
183187 }
Original file line number Diff line number Diff line change @@ -118,10 +118,14 @@ public function loop() {
118118 $ this ->StorageBackend ->saveStatechange (
119119 $ Statechange
120120 );
121+
122+ // Dispatch for bulk messages from queue
123+ $ this ->StorageBackend ->dispatch ();
121124 $ this ->Statistics ->increase ();
122125 }
123126 }
124127
128+ // Dispatch for single messages and timeout checks
125129 $ this ->StorageBackend ->dispatch ();
126130
127131 $ this ->Statistics ->dispatch ();
You can’t perform that action at this time.
0 commit comments