Hi,
I am running this code on a windows machine
if name == ‘main’:
app.run_server(debug=True, processes = 6)
However as I did my research I found out this is not allowed by my windows OS. How to go around it? If I run it without the processes = 6, does that mean my code won’t get executed in parallel?
(Pulling from this discussion Dash callbacks are not async - handling multiple requests and callbacks in parallel)
From https://www.reddit.com/r/learnpython/comments/3fr2a8/windows_alternative_to_gunicorn_deploying_on/, some folks recommend Waitress. Here is usage:
$ waitress-serve --threads=6 my_app:server
Where my_app
refers to the file named my_app.py
(you can change this to the name of your app) and server
refers to a variable in that file called server
which should be initialized like:
server = app.server