class TransientProducerScheduler {

    synchronized void deregister(final CloudJobConfiguration jobConfig) {
        repository.remove(jobConfig.getJobName());
        String cron = jobConfig.getTypeConfig().getCoreConfig().getCron();
        if (!repository.containsKey(buildJobKey(cron))) {
            try {
                scheduler.unscheduleJob(TriggerKey.triggerKey(cron));
            } catch (final SchedulerException ex) {
                throw new JobSystemException(ex);
            }
        }
    }

      TransientProducerScheduler(final ReadyService readyService);

}