Number of participants is wrong when run on another process #1480
Replies: 2 comments 2 replies
-
I just checked and there is another questions that ask the same |
Beta Was this translation helpful? Give feedback.
-
I think this needs to be clarified better in the documentation. The This package does not maintain a unified list of connected clients. If your application has access to a database, for example, maintaining a complete list of clients should be possible. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a socket.io instance running alongside fastapi and uvicorn, which uses the AsyncRedisManager.
I do also have an arq worker that uses another socket.io instance again with the AsyncRedisManager. The issue is that when I try to get the participants using
sio.manager.get_participants(...)
I get back 0 users from the arq worker, while the uvicorn worker doesn't give any issue. And I am running the arq worker before the uvicorn worker.Looking at the documentation it seems that the manager is automatically connected (considering that when I was using the wrong env it was giving errors).
Is there something I can do to fix that, or I just should not try to get participants from the arq worker. And do this also affect multiple workers for uvicorn?
Beta Was this translation helpful? Give feedback.
All reactions