Browse Source

Remove fast return for alert plugins (#7723)

3.0.0/version-upgrade
kezhenxu94 3 years ago committed by GitHub
parent
commit
68906f1b31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/java/org/apache/dolphinscheduler/alert/AlertServer.java

5
dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/java/org/apache/dolphinscheduler/alert/AlertServer.java

@ -75,11 +75,6 @@ public class AlertServer implements Closeable {
checkTable();
startServer();
if (alertPluginManager.size() == 0) {
logger.warn("No alert plugin, alert sender will exit.");
return;
}
Executors.newScheduledThreadPool(1)
.scheduleAtFixedRate(new Sender(), 5, 5, TimeUnit.SECONDS);
}

Loading…
Cancel
Save