Source:
<code>public AzkabanWebServer(final Props props, final Server server, final ExecutorManager executorManager, final ProjectManager projectManager, final TriggerManager triggerManager, final MetricsManager metricsManager, final SessionCache sessionCache, final UserManager userManager, final ScheduleManager scheduleManager, final VelocityEngine velocityEngine, final QuartzScheduler quartzScheduler, final StatusService statusService) { this.props = requireNonNull(props, "props is null."); this.server = requireNonNull(server, "server is null."); this.executorManager = requireNonNull(executorManager, "executorManager is null."); this.projectManager = requireNonNull(projectManager, "projectManager is null."); this.triggerManager = requireNonNull(triggerManager, "triggerManager is null."); this.metricsManager = requireNonNull(metricsManager, "metricsManager is null."); this.sessionCache = requireNonNull(sessionCache, "sessionCache is null."); this.userManager = requireNonNull(userManager, "userManager is null."); this.scheduleManager = requireNonNull(scheduleManager, "scheduleManager is null."); this.velocityEngine = requireNonNull(velocityEngine, "velocityEngine is null."); this.quartzScheduler = requireNonNull(quartzScheduler, "quartzScheduler is null."); this.statusService = statusService; loadBuiltinCheckersAndActions(); final String triggerPluginDir = props.getString("trigger.plugin.dir", "plugins/triggers"); new PluginCheckerAndActionsLoader().load(triggerPluginDir); if (props.containsKey(DEFAULT_TIMEZONE_ID)) { final String timezone = props.getString(DEFAULT_TIMEZONE_ID); System.setProperty("user.timezone", timezone); TimeZone.setDefault(TimeZone.getTimeZone(timezone)); DateTimeZone.setDefault(DateTimeZone.forID(timezone)); logger.info("Setting timezone to " + timezone); } configureMBeanServer(); if(props.containsKey(ConfigurationKeys.ENABLE_QUARTZ) && props.getBoolean(ConfigurationKeys .ENABLE_QUARTZ)) { <START> quartzScheduler.start(); <END> } }</code><technical_language>start scheduler in constructor prepareAndStartServer()</technical_language>

Target:
public AzkabanWebServer(final Props props, final Server server, final ExecutorManager executorManager, final ProjectManager projectManager, final TriggerManager triggerManager, final MetricsManager metricsManager, final SessionCache sessionCache, final UserManager userManager, final ScheduleManager scheduleManager, final VelocityEngine velocityEngine, final QuartzScheduler quartzScheduler, final StatusService statusService) { this.props = requireNonNull(props, "props is null."); this.server = requireNonNull(server, "server is null."); this.executorManager = requireNonNull(executorManager, "executorManager is null."); this.projectManager = requireNonNull(projectManager, "projectManager is null."); this.triggerManager = requireNonNull(triggerManager, "triggerManager is null."); this.metricsManager = requireNonNull(metricsManager, "metricsManager is null."); this.sessionCache = requireNonNull(sessionCache, "sessionCache is null."); this.userManager = requireNonNull(userManager, "userManager is null."); this.scheduleManager = requireNonNull(scheduleManager, "scheduleManager is null."); this.velocityEngine = requireNonNull(velocityEngine, "velocityEngine is null."); this.quartzScheduler = requireNonNull(quartzScheduler, "quartzScheduler is null."); this.statusService = statusService; loadBuiltinCheckersAndActions(); final String triggerPluginDir = props.getString("trigger.plugin.dir", "plugins/triggers"); new PluginCheckerAndActionsLoader().load(triggerPluginDir); if (props.containsKey(DEFAULT_TIMEZONE_ID)) { final String timezone = props.getString(DEFAULT_TIMEZONE_ID); System.setProperty("user.timezone", timezone); TimeZone.setDefault(TimeZone.getTimeZone(timezone)); DateTimeZone.setDefault(DateTimeZone.forID(timezone)); logger.info("Setting timezone to " + timezone); } configureMBeanServer(); }