This commit is contained in:
The Bears
2025-10-31 21:15:14 -04:00
parent 09ed1b8c97
commit d3f2c5e170
6 changed files with 378 additions and 8 deletions

11
test.py Normal file
View File

@@ -0,0 +1,11 @@
import time
import redis
r = redis.Redis('localhost',port=6379, db=14)
max_fail_age = 60*5,
proc_start_time = time.time()
# %%
redis_topic_ffmpeg_fail = 'camera_sidefeeder_sm_fail'
last_fails = [float(x) > max_fail_age for x in r.lrange(redis_topic_ffmpeg_fail, 0, -1) if float(x) > proc_start_time]