update document

pull/10/head
xuxueli 6 years ago
parent a73ecb631f
commit 7c0d119f52

@ -38,13 +38,13 @@ public class JobScheduleHelper {
public void run() { public void run() {
try { try {
TimeUnit.MILLISECONDS.sleep(5000); TimeUnit.MILLISECONDS.sleep(5000 + System.currentTimeMillis()%1000 );
} catch (InterruptedException e) { } catch (InterruptedException e) {
if (!toStop) { if (!toStop) {
logger.error(e.getMessage(), e); logger.error(e.getMessage(), e);
} }
} }
logger.info(">>>>>>>>> init xxl-job admin scheduler running."); logger.info(">>>>>>>>> init xxl-job admin scheduler success.");
while (!toStop) { while (!toStop) {
@ -166,6 +166,15 @@ public class JobScheduleHelper {
ringThread = new Thread(new Runnable() { ringThread = new Thread(new Runnable() {
@Override @Override
public void run() { public void run() {
try {
TimeUnit.MILLISECONDS.sleep(System.currentTimeMillis()%1000 );
} catch (InterruptedException e) {
if (!toStop) {
logger.error(e.getMessage(), e);
}
}
int lastSecond = -1; int lastSecond = -1;
while (!toStop) { while (!toStop) {

Loading…
Cancel
Save