1
我有Django項目的使用文檔 https://channels.readthedocs.io/en/stable/getting-started.htmlDjango渠道運行三名工人,這是正常的嗎?
在設置的通道非常簡單的設置:
CHANNEL_LAYERS = {
"default": {
"BACKEND": "asgiref.inmemory.ChannelLayer",
"ROUTING": "core.routing.channel_routing",
},
}
在rounting.py:
from channels.routing import route
from apps.prices.consumers import get_prices
channel_routing = [
route('get_prices', get_prices),
]
當我運行:
python manage.py runserver
它印:
2016-12-24 23:49:05,202 - INFO - worker - Listening on channels get_prices, http.request, websocket.connect, websocket.receive
2016-12-24 23:49:05,202 - INFO - worker - Listening on channels get_prices, http.request, websocket.connect, websocket.receive
2016-12-24 23:49:05,203 - INFO - worker - Listening on channels get_prices, http.request, websocket.connect, websocket.receive
2016-12-24 23:49:05,207 - INFO - server - Using busy-loop synchronous mode on channel layer
而三名工人似乎出了問題,或者這是正常的? 但一切工作正常。
的建議
它沒有記錄,但我認爲沒關係 – devxplorer