Flask SocketIO + external process : some messages lost #2024
Unanswered
raphael-bresson
asked this question in
Q&A
Replies: 1 comment 11 replies
-
You should enable Socket.IO logs on your server and external processes to see if there are any clues there. |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all
First thing first muchas gracias Miguel para su increible trabajo !
My question is related to many other questions that I read but I can't find a solution for my particular case.
I'm using Flask + Flask_SocketIO + Flask_APScheduler + Redis on my server.
I want to be able to launch several background jobs on my server that can communicate their results to my front via SocketIO.
It works perfectly fine when I use a pool of thread workers.
I instantiate a second SocketIO in my tasks module, with a message queue shared with my main SocketIO(app) instance.
However, when switching to a pool of process workers (APScheduler, for some heavy work) it does not work as expected :
Here is a exerpt of my server code.
Thank you for your help if possible.
app.py
tasks.py
Beta Was this translation helpful? Give feedback.
All reactions