Closed Vitiell0 closed 7 years ago
I didn't see this explained in the docs of django-rq-scheduler but found in the docs for rq-scheduler that you must run rqscheduler
as a command in another terminal window to 'run the scheduler'
https://github.com/ui/rq-scheduler#running-the-scheduler
Also if you are setting this up in production this was helpful too: https://stackoverflow.com/questions/41111155/rqscheduler-on-heroku
Thank you @Vitiell0 ! Could we add this on the README please?
I've used django-rq to handle asynchronous tasks successfully and am now trying to set up scheduled tasks.
I found that when I create either a Repeatable job or Scheduled job that the job is created and I can see it in my database tables.
I can also go into the shell and see that the jobs were created, but never queued, with the following method:
The problem is that these jobs do not run at the time they are scheduled to run. I double checked that the scheduled time with UTC timezone on the server was the same as when the job is scheduled for.
If I manually call
default.run()
all of the jobs run and complete immediately.So I know the redis queue itself is working because it can still complete my other tasks. And jobs are being created and waiting to queue, but they are never entering the queue. This leads me to believe that it must be a problem with the scheduled time and redis recognizing to run the job.
Any help or ideas of what else to try would be really appreciated!