Answer the question
In order to leave comments, you need to log in
apscheduler.scheduler does not work on the server (nginx+uwsgi). How to fix?
there is a function for checking data and sending mail, which should be executed once every 5 minutes
wrote according to this example
from apscheduler.scheduler import Scheduler
sched = Scheduler()
@sched.interval_schedule(hours=3)
def some_job():
print "Decorated job"
sched .configure()
sched.start()
if you run the project in pycharm, everything works
on the working server - no,
my guess is the problem: multithreading on the server is not configured, you need to configure uswgi and nginx for such tasks
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question