Multiple Process not Launch as Expected in Flask-Scoketio #1818
Unanswered
zaingithub
asked this question in
Q&A
Replies: 2 comments
-
workaround for now, i'm using apscheduler to run the job with the current time. i can run 10 chrome driver 1 by 1 and 10 chrome opens fine. i show my simple function to run selenium. however, I still hope there is a solution other than using apscheduler. please help thank you very much |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm not sure if this is the problem because I don't see your implementation. Most web browsers will cap the number of WS connections that can be opened from a page. Chrome caps at 6. |
Beta Was this translation helpful? Give feedback.
0 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, I'm using flask-socketio to build an application desktop which is later bundled with pyinstaller.
From the frontend side, I can run the bot with selenium and chromedriver.
When I use flask-socketio, for example I will run 10 processes to open 1 chrome driver each (10 chromes in total).
this is an example of interaction from the frontend to the backend flask, I click the purple play button.
when I click the purple 'play' button 1 by 1 to 10,
what happens is that only 6 chrome drivers open, chrome drivers 7 to 10 are not running. They will open when one of the first 6 chrome drivers finishes.
I didn't run using "gevent.pool" for this problem, just a plain ajax call from the frontend to the flask backend.
Please help, thank you.
Beta Was this translation helpful? Give feedback.
All reactions