提交 7c0d119f authored 作者: xuxueli's avatar xuxueli

update document

上级 a73ecb63
......@@ -38,13 +38,13 @@ public class JobScheduleHelper {
public void run() {
try {
TimeUnit.MILLISECONDS.sleep(5000);
TimeUnit.MILLISECONDS.sleep(5000 + System.currentTimeMillis()%1000 );
} catch (InterruptedException e) {
if (!toStop) {
logger.error(e.getMessage(), e);
}
}
logger.info(">>>>>>>>> init xxl-job admin scheduler running.");
logger.info(">>>>>>>>> init xxl-job admin scheduler success.");
while (!toStop) {
......@@ -166,6 +166,15 @@ public class JobScheduleHelper {
ringThread = new Thread(new Runnable() {
@Override
public void run() {
try {
TimeUnit.MILLISECONDS.sleep(System.currentTimeMillis()%1000 );
} catch (InterruptedException e) {
if (!toStop) {
logger.error(e.getMessage(), e);
}
}
int lastSecond = -1;
while (!toStop) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论