phase 17: switch to qwen3.5:9b-fast (32k context), add queue management scripts
This commit is contained in:
@@ -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")
|
||||
Reference in New Issue
Block a user