File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ private function setIngestProperty($config)
195
195
if (is_array ($ service )) {
196
196
// Filter running ingest services.
197
197
$ running_services = array_filter ($ service , function ($ s ) {
198
- return $ s ->active && $ s ->online ;
198
+ return $ s ->active && $ s ->online && ! $ s -> maintenance ;
199
199
});
200
200
// If no running services, return.
201
201
if (empty ($ running_services )) {
@@ -205,7 +205,7 @@ private function setIngestProperty($config)
205
205
$ ingestService = reset ($ running_services );
206
206
} else {
207
207
// There is only one and is running.
208
- if (!($ service ->active && $ service ->online )) {
208
+ if (!($ service ->active && $ service ->online && ! $ service -> maintenance )) {
209
209
return ;
210
210
}
211
211
$ ingestService = $ service ;
You can’t perform that action at this time.
0 commit comments