This commit is contained in:
parent
c3e395ea2a
commit
30104d46d3
@ -26,7 +26,7 @@ def run(redis_client: Redis, site_url_map: Dict[str, str]):
|
|||||||
|
|
||||||
# Figuring out if any of the sites need attention
|
# Figuring out if any of the sites need attention
|
||||||
incraising_queue_at = []
|
incraising_queue_at = []
|
||||||
for site_name, site_stat in weather_report:
|
for site_name, site_stat in weather_report.items():
|
||||||
if site_stat['queue']['derivative'] > 0.001 and site_stat['queue']['mean'] > 2:
|
if site_stat['queue']['derivative'] > 0.001 and site_stat['queue']['mean'] > 2:
|
||||||
key = f"INCRAISINGQUEUE:{site_name}"
|
key = f"INCRAISINGQUEUE:{site_name}"
|
||||||
incraising_queue_detected_times = redis_client.incr(key)
|
incraising_queue_detected_times = redis_client.incr(key)
|
||||||
|
Loading…
Reference in New Issue
Block a user