more scheduler logging
This commit is contained in:
@@ -61,18 +61,20 @@ class Scheduler(Plugin):
|
|||||||
log.error("Failed adding interval cronjob: %s" % e)
|
log.error("Failed adding interval cronjob: %s" % e)
|
||||||
|
|
||||||
# Start it
|
# Start it
|
||||||
|
log.debug('Starting scheduler')
|
||||||
self.sched.start()
|
self.sched.start()
|
||||||
self.started = True
|
self.started = True
|
||||||
|
log.debug('Scheduler started')
|
||||||
|
|
||||||
def doShutdown(self):
|
def doShutdown(self):
|
||||||
super(Scheduler, self).doShutdown()
|
super(Scheduler, self).doShutdown()
|
||||||
self.stop()
|
self.stop()
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
log.debug('Stopping scheduler')
|
|
||||||
if self.started:
|
if self.started:
|
||||||
|
log.debug('Stopping scheduler')
|
||||||
self.sched.shutdown()
|
self.sched.shutdown()
|
||||||
log.debug('Scheduler stopped')
|
log.debug('Scheduler stopped')
|
||||||
self.started = False
|
self.started = False
|
||||||
|
|
||||||
def cron(self, identifier = '', handle = None, day = '*', hour = '*', minute = '*'):
|
def cron(self, identifier = '', handle = None, day = '*', hour = '*', minute = '*'):
|
||||||
|
|||||||
Reference in New Issue
Block a user