This commit is contained in:
Looly 2022-06-27 20:00:28 +08:00
parent 7bd0602219
commit 09441650de

View File

@ -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);
}