Remove fast return for alert plugins due to bean initialization lifecycle is not determinged
Causing alert sender is not executed
This commit is contained in:
parent
f5fd29a05d
commit
6aaecdbd0b
|
|
@ -80,11 +80,6 @@ public class AlertServer implements Closeable {
|
||||||
checkTable();
|
checkTable();
|
||||||
startServer();
|
startServer();
|
||||||
|
|
||||||
if (alertPluginManager.size() == 0) {
|
|
||||||
log.warn("No alert plugin, alert sender will exit.");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Executors.newScheduledThreadPool(1)
|
Executors.newScheduledThreadPool(1)
|
||||||
.scheduleAtFixedRate(new Sender(), 5, 5, TimeUnit.SECONDS);
|
.scheduleAtFixedRate(new Sender(), 5, 5, TimeUnit.SECONDS);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue