mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +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();
|
||||
StaticLog.debug("Load job: {} {}", pattern, jobClass);
|
||||
try {
|
||||
schedule(pattern, new InvokeTask(jobClass));
|
||||
// issue#I5E7BM@Gitee,自定义ID避免重复从配置文件加载
|
||||
schedule("id_" + jobClass, pattern, new InvokeTask(jobClass));
|
||||
} catch (final Exception e) {
|
||||
throw new CronException(e, "Schedule [{}] [{}] error!", pattern, jobClass);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user