Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public QuartzSchedulerService(ZeppelinConfiguration zeppelinConfiguration, Noteb
throws SchedulerException {
this.zeppelinConfiguration = zeppelinConfiguration;
this.notebook = notebook;
this.scheduler = new StdSchedulerFactory().getScheduler();
this.scheduler = getScheduler();
this.scheduler.start();

// Do in a separated thread because there may be many notes,
Expand Down Expand Up @@ -85,6 +85,13 @@ public QuartzSchedulerService(ZeppelinConfiguration zeppelinConfiguration, Noteb
loadingNotesThread.start();
}

private Scheduler getScheduler() throws SchedulerException {
// Make sure to not check for Quartz update since this leaks information about running process
// http://www.quartz-scheduler.org/documentation/2.4.0-SNAPSHOT/best-practices.html#skip-update-check
System.setProperty(StdSchedulerFactory.PROP_SCHED_SKIP_UPDATE_CHECK, "true");
return new StdSchedulerFactory().getScheduler();
}

/**
* This is only for testing, unit test should always call this method in setup() before testing.
*/
Expand Down