phase 17: switch to qwen3.5:9b-fast (32k context), add queue management scripts

This commit is contained in:
Celes Renata
2026-04-12 10:19:28 -07:00
parent 1993bfdf3e
commit 7ee1d0f050
3 changed files with 39 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
import redis, os
r = redis.from_url(f"redis://:{os.environ.get('REDIS_PASSWORD','')}@{os.environ['REDIS_HOST']}:{os.environ['REDIS_PORT']}/0")
for q in ["ingestion","parsing","extraction","aggregation","recommendation","lake_publish","broker_orders"]:
key = f"stonks:queue:{q}"
depth = r.llen(key)
if depth > 0:
r.delete(key)
print(f" Flushed {key}: {depth} jobs")
else:
print(f" {key}: empty")