From e7eeb6a2a23391fd6fb6580bf5f5dc69709c74fb Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Tue, 9 Mar 2021 17:04:01 -0500 Subject: [PATCH] Failed feeds fetched monitor needs to handle edge case. --- utils/monitor_task_fetches.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/monitor_task_fetches.py b/utils/monitor_task_fetches.py index f934c585e..aefb8439b 100755 --- a/utils/monitor_task_fetches.py +++ b/utils/monitor_task_fetches.py @@ -31,8 +31,9 @@ def main(): except Exception, e: failed = e - if feeds_fetched < 5000000 and feeds_fetched <= (redis_task_fetches - FETCHES_DROP_AMOUNT): - failed = True + if feeds_fetched < 5000000: + if redis_task_fetches > 0 and feeds_fetched <= (redis_task_fetches - FETCHES_DROP_AMOUNT): + failed = True if failed: requests.post(