remove syntax error from redis bgsave sanity checker

This commit is contained in:
Jonathan Math 2021-06-27 13:07:32 -06:00
parent 5cbe285888
commit 4b257bce00

View file

@ -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(