Skip to content
Snippets Groups Projects
Verified Commit f3b44ce7 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: add more info to strange exception in Schedule.runJobs

parent 64bec6db
No related branches found
No related tags found
No related merge requests found
...@@ -98,11 +98,15 @@ public class Schedule { ...@@ -98,11 +98,15 @@ public class Schedule {
public void runJobs(final JobExecutionTime time) { public void runJobs(final JobExecutionTime time) {
for (final ScheduledJob scheduledJob : this.jobs) { for (final ScheduledJob scheduledJob : this.jobs) {
try {
if (scheduledJob.getExecutionTime().ordinal() == time.ordinal() if (scheduledJob.getExecutionTime().ordinal() == time.ordinal()
|| (time.ordinal() <= JobExecutionTime.POST_CHECK.ordinal() || (time.ordinal() <= JobExecutionTime.POST_CHECK.ordinal()
&& scheduledJob.getExecutionTime().ordinal() < time.ordinal())) { && scheduledJob.getExecutionTime().ordinal() < time.ordinal())) {
runJob(scheduledJob); runJob(scheduledJob);
} }
} catch (RuntimeException e) {
throw new RuntimeException(scheduledJob.toString(), e);
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment