When I run the flask server in local machine, I use this code
app.run(host='0.0.0.0', port=port,debug=False,use_reloader=False) I am using BackgroundScheduler so I need reloader to be false othrwise BackgroundScheduler will run twice.
from apscheduler.schedulers.background import BackgroundScheduler When I deploy to Heroku, I use gunicorn like this
web: gunicorn app:app So the problem is that reloader is true when using this so BackgroundScheduler has two instances.
So how do I stop reloader for Gunicorn?
Any help will be appreciated.
As you can see in above image 2 processes are created.
Thank you in advance
