Remove debugging output.
This commit is contained in:
parent
6d4978f652
commit
06fa3713a7
1 changed files with 1 additions and 3 deletions
|
@ -228,12 +228,10 @@ public class CronJob {
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
CronJob job = (CronJob) it.next();
|
CronJob job = (CronJob) it.next();
|
||||||
if (job.getFunction() == null) {
|
if (job.getFunction() == null) {
|
||||||
System.err.println("DROPPING CRON JOB " + job);
|
|
||||||
it.remove();
|
it.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
List jobVec = new ArrayList (jobs.values());
|
List jobVec = new ArrayList (jobs.values());
|
||||||
System.err.println("GOT CRON JOB LIST: " + jobVec);
|
|
||||||
return sort (jobVec);
|
return sort (jobVec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -426,7 +424,7 @@ public class CronJob {
|
||||||
// We return the interval to one second past the next full minute
|
// We return the interval to one second past the next full minute
|
||||||
// to avoid the case where the scheduler wakes up slightly before the minute
|
// to avoid the case where the scheduler wakes up slightly before the minute
|
||||||
// and finishes so fast that the next call to this method returns the
|
// and finishes so fast that the next call to this method returns the
|
||||||
// interval to the same minute instead of the next one. This happened
|
// interval to the same minute instead of the next one. This happened
|
||||||
// sometimes with the old code and caused the scheduler to run twice in
|
// sometimes with the old code and caused the scheduler to run twice in
|
||||||
// immediate succession.
|
// immediate succession.
|
||||||
return (61000 - millisAfterMinute);
|
return (61000 - millisAfterMinute);
|
||||||
|
|
Loading…
Add table
Reference in a new issue