Update library: APScheduler

This commit is contained in:
Ruud committed 2014-01-20 16:47:49 +01:00
1 parent 5cf21452c1
commit 04539edb45
3 files changed
+19 -7

No files matched your search

+8 -2
View File
@@ -586,7 +586,10 @@ class Scheduler(object):
wait_seconds = time_difference(next_wakeup_time, now)
logger.debug('Next wakeup is due at %s (in %f seconds)',
next_wakeup_time, wait_seconds)
self._wakeup.wait(wait_seconds)
try:
self._wakeup.wait(wait_seconds)
except IOError: # Catch errno 514 on some Linux kernels
pass
self._wakeup.clear()
elif self.standalone:
logger.debug('No jobs left; shutting down scheduler')
@@ -594,7 +597,10 @@ class Scheduler(object):
break
else:
logger.debug('No jobs; waiting until a job is added')
self._wakeup.wait()
try:
self._wakeup.wait()
except IOError: # Catch errno 514 on some Linux kernels
pass
self._wakeup.clear()
logger.info('Scheduler has been shut down')