mirror of
https://github.com/LamGC/Oracle-Sentry.git
synced 2025-04-29 14:17:34 +00:00
fix: 修复线程池尚未初始化的问题.
ThreadPoolTaskScheduler 需要手动初始化才能使用.
This commit is contained in:
parent
800bb13c9e
commit
284f0229f7
@ -25,6 +25,7 @@ public class TimerTrigger implements GroovyTrigger {
|
||||
.setNameFormat("Groovy-TimerTrigger-%d")
|
||||
.build());
|
||||
SCHEDULER.setErrorHandler(t -> log.error("脚本执行时发生异常.", t));
|
||||
SCHEDULER.initialize();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user