mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-02 18:51:31 +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()
|
sock.close()
|
||||||
|
|
||||||
if response.get("type") == DirtyProtocol.MSG_TYPE_RESPONSE:
|
if response.get("type") == DirtyProtocol.MSG_TYPE_RESPONSE:
|
||||||
data = response.get("data", {})
|
result = response.get("result", {})
|
||||||
return data.get("workers", [])
|
return result.get("workers", [])
|
||||||
|
|
||||||
except Exception as e:
|
except Exception:
|
||||||
# Log error for debugging
|
pass
|
||||||
if hasattr(self.arbiter, 'log') and self.arbiter.log:
|
|
||||||
self.arbiter.log.debug("Failed to query dirty workers: %s", e)
|
|
||||||
|
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user