diff --git a/worker/cp-worker.py b/worker/cp-worker.py index 8f6a654..d2dd3af 100644 --- a/worker/cp-worker.py +++ b/worker/cp-worker.py @@ -138,6 +138,7 @@ def runCellProfiler(message): objectsizelist=[k['Size'] for k in bucketlist['Contents']] objectsizelist = [i for i in objectsizelist if i >= MIN_FILE_SIZE_BYTES] if len(objectsizelist)>=int(EXPECTED_NUMBER_FILES): + logger.removeHandler(watchtowerlogger) return 'SUCCESS' except KeyError: #Returned if that folder does not exist pass