After I ran this code, I got the following error: 'Could not resolve a Redis connection'. This is because connection parameter is set by default to NONE and the resolve_connection function throws this error.
I've manage to fix this by giving the resolve_connection function the queue.connection parameter ( self.connection = resolve_connection(queue.connection)), where queue is the Queue instance passed as argument to the Scheduler (sync_scheduler = Scheduler(queue=sync_queue))
Your method described in the readme.txt file to instantiate a Instantiate a Scheduler using an RQ Queue does not work. Code referred to below:
Here is my setup and how I made it to work:
--------- This is how scheduler.py created the Scheduler class---------------------
After I ran this code, I got the following error: 'Could not resolve a Redis connection'. This is because connection parameter is set by default to NONE and the resolve_connection function throws this error.
I've manage to fix this by giving the resolve_connection function the queue.connection parameter ( self.connection = resolve_connection(queue.connection)), where queue is the Queue instance passed as argument to the Scheduler (sync_scheduler = Scheduler(queue=sync_queue))