Commit 71c33c63 by 朽木不可雕也

backup

parent cea1a58b
...@@ -56,12 +56,7 @@ public abstract class CreateTaskJob implements Job { ...@@ -56,12 +56,7 @@ public abstract class CreateTaskJob implements Job {
triggerBuilder.withDescription(description); triggerBuilder.withDescription(description);
triggerBuilder.withIdentity(name, group); triggerBuilder.withIdentity(name, group);
long openInterval = System.currentTimeMillis() + 3600000L; triggerBuilder.startAt(TimeUtil.randmoDate(1));
long closedInterval = openInterval + 6 * 3600000L;
long time = (long) (openInterval + ((closedInterval - openInterval) * Math.random()));
triggerBuilder.startAt(new Date(time));
triggerBuilder.startNow();
SCHEDULER.scheduleJob(jobBuilder.build(), triggerBuilder.build()); SCHEDULER.scheduleJob(jobBuilder.build(), triggerBuilder.build());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment