mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix code
This commit is contained in:
parent
7bd0602219
commit
09441650de
@ -211,7 +211,8 @@ public class Scheduler implements Serializable {
|
|||||||
final String pattern = entry.getValue();
|
final String pattern = entry.getValue();
|
||||||
StaticLog.debug("Load job: {} {}", pattern, jobClass);
|
StaticLog.debug("Load job: {} {}", pattern, jobClass);
|
||||||
try {
|
try {
|
||||||
schedule(pattern, new InvokeTask(jobClass));
|
// issue#I5E7BM@Gitee,自定义ID避免重复从配置文件加载
|
||||||
|
schedule("id_" + jobClass, pattern, new InvokeTask(jobClass));
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
throw new CronException(e, "Schedule [{}] [{}] error!", pattern, jobClass);
|
throw new CronException(e, "Schedule [{}] [{}] error!", pattern, jobClass);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user