Replies: 1 comment 3 replies
-
Are you using eventlet or gevent in this application? These frameworks are not compatible with standard threads, you have to monkey patch the standard library if you want to use them, or else use the native concurrency they provide. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
Sorry for what may be a very simple question.
I have recently started implementing threads into my flask socketio application, and am running into a problem when those threads are running.
If I start a thread that runs forever, it appears to take over the main application thread, and subsequent lines do not run.
When running handle_test without flask-socketio, I see both lines and the thread runs just fine.
But when I run the thread in the above setup, I only see the first line and my program jumps right into the thread instead of running the second line.
I assume that I'm using threads wrong in this situation and/or there's some config option that I need to set.
I've come across a few of the repo's issues that may be related to my issue, but I am struggling to understand their relevance to my situation!
#1990
#1801
#410
Any help with this is greatly appreciate!
Beta Was this translation helpful? Give feedback.
All reactions