From 4f0a5259eabe9362dc42f268e6041cbf541a8cd0 Mon Sep 17 00:00:00 2001 From: Beth Cimini Date: Wed, 30 Sep 2020 13:07:12 -0400 Subject: [PATCH] Update cp-worker.py --- worker/cp-worker.py | 1 + 1 file changed, 1 insertion(+) 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