fix(定时任务):【github】定时任务初始化日志输出
This commit is contained in:
parent
5832b618a5
commit
0979d8449c
|
@ -134,7 +134,7 @@ public class ScheduleService {
|
||||||
Schedules.forEach(schedule -> {
|
Schedules.forEach(schedule -> {
|
||||||
try {
|
try {
|
||||||
if (schedule.getEnable()) {
|
if (schedule.getEnable()) {
|
||||||
LogUtil.error("初始化任务:" + JSON.toJSONString(schedule));
|
LogUtil.info("初始化任务:" + JSON.toJSONString(schedule));
|
||||||
scheduleManager.addOrUpdateCronJob(new JobKey(schedule.getKey(), schedule.getGroup()),
|
scheduleManager.addOrUpdateCronJob(new JobKey(schedule.getKey(), schedule.getGroup()),
|
||||||
new TriggerKey(schedule.getKey(), schedule.getGroup()), Class.forName(schedule.getJob()), schedule.getValue(),
|
new TriggerKey(schedule.getKey(), schedule.getGroup()), Class.forName(schedule.getJob()), schedule.getValue(),
|
||||||
scheduleManager.getDefaultJobDataMap(schedule.getResourceId(), schedule.getValue(), schedule.getUserId()));
|
scheduleManager.getDefaultJobDataMap(schedule.getResourceId(), schedule.getValue(), schedule.getUserId()));
|
||||||
|
|
Loading…
Reference in New Issue