From e16c8ed595734a5fc6fc83cac06a82fe915ff7ea Mon Sep 17 00:00:00 2001 From: Sinisa Veseli <sveseli@aps.anl.gov> Date: Mon, 8 Feb 2016 03:36:14 +0000 Subject: [PATCH] no need for processing if there are no processors --- src/python/dm/common/processing/fileProcessingThread.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/python/dm/common/processing/fileProcessingThread.py b/src/python/dm/common/processing/fileProcessingThread.py index b7cb201f..bc2e485f 100755 --- a/src/python/dm/common/processing/fileProcessingThread.py +++ b/src/python/dm/common/processing/fileProcessingThread.py @@ -21,6 +21,9 @@ class FileProcessingThread(threading.Thread): self.logger = LoggingManager.getInstance().getLogger(name) def processFile(self, fileInfo): + if not len(self.fileProcessorKeyList): + return + filePath = fileInfo.get('filePath') try: statusMonitor = fileInfo.get('statusMonitor') -- GitLab