def __init__(self, databases=None, noloop=False, *args, **kwargs):
        "Capture all cron jobs"
        if databases is None:
            databases = []

        signal.signal(signal.SIGTERM, self.stop)

        self.databases = databases or []
        self.jobs = []
        self.sleeptime = getattr(settings, 'HARDTREE_CRON_PERIOD', 60)
        self.priority_high = getattr(
            settings, 'HARDTREE_CRON_HIGH_PRIORITY', 10)
        self.priority_low = getattr(settings, 'HARDTREE_CRON_LOW_PRIORITY', 3)
        self.qualify_high = getattr(settings, 'HARDTREE_CRON_QUALIFY_HIGH', 10)
        self.qualify_run = getattr(
            settings, 'HARDTREE_CRON_QUALIFY_RUN', 86400)
        self.poolsize = getattr(settings, 'HARDTREE_CRON_POOL_SIZE', 10)
        self.softkill = getattr(settings, 'HARDTREE_CRON_SOFT_KILL', 0)
        self.hardkill = getattr(settings, 'HARDTREE_CRON_HARD_KILL', -1)
        self.gracewait = getattr(settings, 'HARDTREE_CRON_GRACE_WAIT', 5)
        self.noloop = noloop

        for module in settings.INSTALLED_APPS:
            import_name = str(
                module) + "." + settings.HARDTREE_MODULE_IDENTIFIER
            try:
                hmodule = __import__(import_name, fromlist=[str(module)])
                self.jobs.extend(hmodule.CRON)
            except ImportError:
                pass
            except __HOLE__:
                pass

        if not self.databases:
            self.databases = [db for db in settings.DATABASES]

        cronlogger.info('Starting cron...')
        cronlogger.debug('DATABASES: ' + unicode(self.databases))
        cronlogger.debug('CRON_PERIOD: ' + unicode(self.sleeptime))
        cronlogger.debug('CRON_HIGH_PRIORITY: ' + unicode(self.priority_high))
        cronlogger.debug('CRON_LOW_PRIORITY: ' + unicode(self.priority_low))
        cronlogger.debug('CRON_QUALIFY_HIGH: ' + unicode(self.qualify_high))
        cronlogger.debug('CRON_POOL_SIZE: ' + unicode(self.poolsize))
        cronlogger.debug('CRON_SOFT_KILL: ' + unicode(self.softkill))
        cronlogger.debug('CRON_HARD_KILL: ' + unicode(self.hardkill))
        cronlogger.debug('CRON_GRACE_WAIT: ' + unicode(self.gracewait))
        cronlogger.debug('CRON_NO_LOOP: ' + unicode(self.noloop))
dataset/ETHPy150Open treeio/treeio/treeio/core/management/commands/runcron.py/CronRunner.__init__