in case of general exception no need to execute the rest of the method

Original commit: elastic/x-pack-elasticsearch@d0cdaf037d
This commit is contained in:
Martijn van Groningen 2017-01-04 15:25:45 +01:00
parent 5371cc8454
commit 090c7e792a
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ public class ScheduledJobRunner extends AbstractComponent {
} catch (Exception e) {
logger.error("Failed lookback import for job [" + job.getId() + "]", e);
holder.stop(e);
return;
}
if (next != null) {
doScheduleRealtime(next, job.getId(), holder);