diff options
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r-- | module/ThreadManager.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/module/ThreadManager.py b/module/ThreadManager.py index a8e8b2772..0a7408ecf 100644 --- a/module/ThreadManager.py +++ b/module/ThreadManager.py @@ -96,7 +96,17 @@ class ThreadManager: if self.core.debug: print_exc() self.checkThreadCount() - self.assignJob() + + try: + self.assignJob() + except Exception, e: + self.log.warning("Assign job error", e) + if self.core.debug: + print_exc() + + sleep(0.1) + self.assignJob() + #it may be failed non critical so we try it again #---------------------------------------------------------------------- def tryReconnect(self): |