I am new to gunicorn multiprocessing (by calling gunicorn –worker=X). I am using it with Flask to provide the WSGI implementation for our productive frontend. To use multiprocessing, we pass the above mentioned parameter to unicorn. Our Flask application also uses APScheduler (via Flask-APScheduler) to run a cron task every Y hours. This task searches for new database entries to
Tag: apscheduler
Thread error while running scheduled task inside of a Flask application
I want to create a scheduler that will run every hour in my Flask application. To do this, I use the APScheduler library. Here is the most basic source code I could find online: When I try to run my application, I get the following error: After a bit of research, I found that other people on python 3.9 have