diff --git a/src/main/java/net/lamgc/oracle/sentry/script/groovy/trigger/TimerTrigger.java b/src/main/java/net/lamgc/oracle/sentry/script/groovy/trigger/TimerTrigger.java index a525d63..fa51423 100644 --- a/src/main/java/net/lamgc/oracle/sentry/script/groovy/trigger/TimerTrigger.java +++ b/src/main/java/net/lamgc/oracle/sentry/script/groovy/trigger/TimerTrigger.java @@ -25,6 +25,7 @@ public class TimerTrigger implements GroovyTrigger { .setNameFormat("Groovy-TimerTrigger-%d") .build()); SCHEDULER.setErrorHandler(t -> log.error("脚本执行时发生异常.", t)); + SCHEDULER.initialize(); } /**