# Path: libre/apps/scheduler/exceptions.py
# class AlreadyScheduled(Exception):
#     """
#     Raised when trying to schedule a Job instance of anything after it was
#     already scheduled in any other scheduler
#     """
#     pass
# 
# class UnknownJob(Exception):
#     pass
# 
# class UnknownJobClass(Exception):
#     """
#     Raised when trying to schedule a Job that is not of a a type:
#     IntervalJob or DateJob
#     """
#     pass


import logging
from apscheduler.scheduler import Scheduler as OriginalScheduler
from django.utils.translation import ugettext_lazy as _
from .exceptions import AlreadyScheduled, UnknownJob, UnknownJobClass
    def start_date(self):
        return self._job.trigger.start_date


class IntervalJob(SchedulerJobBase):
    job_type = _(u'Interval job')

    def start(self, scheduler):
        scheduler.add_job(self)


class DateJob(SchedulerJobBase):
    job_type = _(u'Date job')

    def start(self, scheduler):
        scheduler.add_job(self)


class CronJob(SchedulerJobBase):
    job_type = _(u'Cron job')

    def start(self, scheduler):
        scheduler.add_job(self)


class LocalScheduler(object):
    scheduler_registry = {}
    _lockdown = False

    @classmethod

# Path: libre/apps/scheduler/exceptions.py
# class AlreadyScheduled(Exception):
#     """
#     Raised when trying to schedule a Job instance of anything after it was
#     already scheduled in any other scheduler
#     """
#     pass
# 
# class UnknownJob(Exception):
#     pass
# 
# class UnknownJobClass(Exception):
#     """
#     Raised when trying to schedule a Job that is not of a a type:
#     IntervalJob or DateJob
#     """
#     pass


# Path: libre/apps/scheduler/classes.py
import logging
from apscheduler.scheduler import Scheduler as OriginalScheduler
from django.utils.translation import ugettext_lazy as _
from .exceptions import AlreadyScheduled, UnknownJob, UnknownJobClass

    def start_date(self):
        return self._job.trigger.start_date


class IntervalJob(SchedulerJobBase):
    job_type = _(u'Interval job')

    def start(self, scheduler):
        scheduler.add_job(self)


class DateJob(SchedulerJobBase):
    job_type = _(u'Date job')

    def start(self, scheduler):
        scheduler.add_job(self)


class CronJob(SchedulerJobBase):
    job_type = _(u'Cron job')

    def start(self, scheduler):
        scheduler.add_job(self)


class LocalScheduler(object):
    scheduler_registry = {}
    _lockdown = False

    @classmethod

    def get(cls, name):