mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
support monitoring task executor (#2069)
### What problem does this PR solve? #1383 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -68,7 +68,10 @@ def status():
|
||||
res["redis"] = {"status": "red", "elapsed": "{:.1f}".format((timer() - st)*1000.), "error": str(e)}
|
||||
|
||||
try:
|
||||
obj = json.loads(REDIS_CONN.get("TASKEXE"))
|
||||
v = REDIS_CONN.get("TASKEXE")
|
||||
if not v:
|
||||
raise Exception("No task executor running!")
|
||||
obj = json.loads(v)
|
||||
color = "green"
|
||||
for id in obj.keys():
|
||||
arr = obj[id]
|
||||
|
||||
Reference in New Issue
Block a user