update the format for the workers output.
This commit is contained in:
parent
5bba32cd06
commit
2493d41271
1 changed files with 5 additions and 1 deletions
|
|
@ -364,7 +364,11 @@ class Main:
|
|||
def default(o): return f"<<non-serializable: {type(o).__qualname__}>>"
|
||||
return json.dumps(obj, default=default)
|
||||
|
||||
return web.Response(text=safe_serialize(data), headers={
|
||||
return web.Response(text=safe_serialize({
|
||||
'open': self.queue.pool.has_open_workers(),
|
||||
'count': self.queue.pool.get_available_workers(),
|
||||
'workers': data,
|
||||
}), headers={
|
||||
'Content-Type': 'application/json',
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue