The server has now 2 notification streams

* A new one for controller related events (compute, appliance templates etc.)
* The existing one for project related events (links, nodes etc.)
This commit is contained in:
grossmj
2018-08-16 21:31:56 +07:00
parent dac3ba19b7
commit 7f72b90b0e
364 changed files with 12364 additions and 9923 deletions

View File

@ -227,7 +227,7 @@ class ProjectHandler:
response.enable_chunked_encoding()
yield from response.prepare(request)
with controller.notification.queue(project) as queue:
with controller.notification.project_queue(project) as queue:
while True:
try:
msg = yield from queue.get_json(5)
@ -263,7 +263,7 @@ class ProjectHandler:
asyncio_ensure_future(process_websocket(ws))
with controller.notification.queue(project) as queue:
with controller.notification.project_queue(project) as queue:
while True:
try:
notification = yield from queue.get_json(5)