I was looking at using APScheduler BackgroundScheduler to run a job every few seconds.
My question is if I put the Scheduler in my code, run it on the cloud and have thousands of users making requests,will the work of the scheduler be repeated?
To me it seems that for every process that Flask creates there will be a BackgroundScheduler thread running. Which means that on the cloud the work will be repeated.
If this is the case, is there a way to get around the issue without having to run some script in a separate machine. I would prefer to have the job in Flask mainly because of costs and maintainability.