in src/main/java/org/apache/sling/commons/scheduler/impl/QuartzScheduler.java [540:559]
public boolean unschedule(final Long bundleId, final String jobName) {
if ( jobName != null ) {
synchronized ( this.schedulers ) {
for(final SchedulerProxy proxy : this.schedulers.values()) {
try {
final JobKey key = JobKey.jobKey(jobName);
final JobDetail jobdetail = proxy.getScheduler().getJobDetail(key);
if (jobdetail != null) {
proxy.getScheduler().deleteJob(key);
this.logger.debug("Unscheduling job with name {}", jobName);
return true;
}
} catch (final SchedulerException ignored) {
// ignore
}
}
}
}
return false;
}