mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-01 18:21:30 +08:00
fix(ctl): use 'result' key from dirty protocol response
The dirty protocol response uses 'result' not 'data' for the payload.
This commit is contained in:
parent
be27ed4036
commit
7df260930c
@ -503,13 +503,11 @@ class CommandHandlers:
|
||||
sock.close()
|
||||
|
||||
if response.get("type") == DirtyProtocol.MSG_TYPE_RESPONSE:
|
||||
data = response.get("data", {})
|
||||
return data.get("workers", [])
|
||||
result = response.get("result", {})
|
||||
return result.get("workers", [])
|
||||
|
||||
except Exception as e:
|
||||
# Log error for debugging
|
||||
if hasattr(self.arbiter, 'log') and self.arbiter.log:
|
||||
self.arbiter.log.debug("Failed to query dirty workers: %s", e)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
return []
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user