Skip to content

Commit

Permalink
fix: 修复线程池尚未初始化的问题.
Browse files Browse the repository at this point in the history
ThreadPoolTaskScheduler 需要手动初始化才能使用.
  • Loading branch information
LamGC committed Aug 24, 2021
1 parent 800bb13 commit 284f022
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class TimerTrigger implements GroovyTrigger {
.setNameFormat("Groovy-TimerTrigger-%d")
.build());
SCHEDULER.setErrorHandler(t -> log.error("脚本执行时发生异常.", t));
SCHEDULER.initialize();
}

/**
Expand Down

0 comments on commit 284f022

Please sign in to comment.