From 4b257bce009b499dc12e7c1c1e4f9bd776421351 Mon Sep 17 00:00:00 2001 From: Jonathan Math Date: Sun, 27 Jun 2021 13:07:32 -0600 Subject: [PATCH] remove syntax error from redis bgsave sanity checker --- utils/monitor_redis_bgsave.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/monitor_redis_bgsave.py b/utils/monitor_redis_bgsave.py index a111f8705..c70893f3a 100755 --- a/utils/monitor_redis_bgsave.py +++ b/utils/monitor_redis_bgsave.py @@ -14,10 +14,9 @@ def main(): t = os.popen('stat -c%Y /srv/newsblur/docker/volumes/redis/') timestamp = t.read().split('\n')[0] modified = datetime.datetime.fromtimestamp(int(timestamp)) - ten_min_ago = datetime.datetime.now() - datetime.timedelta(minutes=10) hostname = socket.gethostname() modified_minutes = datetime.datetime.now() - modified - log_tail = os.popen(f"tail -n 100 {redis_log_path} redis)").read() + log_tail = os.popen(f"tail -n 100 {redis_log_path}").read() if True: #if modified < ten_min_ago: requests.post(