title: Django rq-scheduler: jobs in scheduler doesnt get executed
body: <p>In my Heroku application I succesfully implemented background tasks. For this purpose I created a <strong>Queue</strong> object at the top of my <strong>views.py</strong> file and called <strong>queue.enqueue()</strong> in the appropriate view.</p>
  <p>Now I'm trying to set a repeated job with rq-scheduler's scheduler.schedule() method. I know that it is not best way to do it but I call this method again at the top of my <strong>views.py</strong> file. Whatever I do, I couldn't get it to work, even if it's a simple HelloWorld function.</p>
  <p><strong>views.py:</strong></p>
  <pre><code>from redis import Redis
  from rq import Queue
  from worker import conn
  from rq_scheduler import Scheduler
  
  scheduler = Scheduler(queue=q, connection=conn)
  print(&quot;SCHEDULER = &quot;, scheduler)
  
  def say_hello():
      print(&quot; Hello world!&quot;)
  
  scheduler.schedule(
  scheduled_time=datetime.utcnow(),   # Time for first execution, in UTC timezone
      func=say_hello,                     # Function to be queued
      interval=60,                        # Time before the function is called again, in seconds
      repeat=10,                          # Repeat this number of times (None means repeat forever)
      queue_name='default',
  )
  </code></pre>
  <p><strong>worker.py:</strong></p>
  <pre><code>import os
  import redis
  from rq import Worker, Queue, Connection
  
  import django
  django.setup()
  
  listen = ['high', 'default', 'low']
  
  redis_url = os.getenv('REDISTOGO_URL')
  if not redis_url:
      print(&quot;Set up Redis To Go first. Probably can't get env variable REDISTOGO_URL&quot;)
      raise RuntimeError(&quot;Set up Redis To Go first. Probably can't get env variable REDISTOGO_URL&quot;)
  
  conn = redis.from_url(redis_url)
  
  if __name__ == '__main__':
      with Connection(conn):
          print(&quot; CREATING NEW WORKER IN worker.py&quot;)
          worker = Worker(map(Queue, listen))
          worker.work()
  </code></pre>
  <p>I'm checking the length of my queue before and after of <strong>schedule()</strong>, but it looks like length is always 0. I also can see that there are jobs when I call <strong>scheduler.get_jobs()</strong>, but those jobs doesn't get enqueued or performed I think.</p>
  <p>I also don't want to use another cron solution for my project, as I already can do background tasks with rq, it shouldn't be that hard to implement a repeated task, or is it?</p>
  <p>I went through documentation a couple times, now I feel so stuck, so I appretiate all the help or advices that I can get.</p>
  <p>Using <strong>rq 1.6.1</strong> and <strong>rq-scheduler 0.10.0</strong> packages with <strong>Django 2.2.5</strong> and <strong>Python 3.6.10</strong></p>
  <p><strong>Edit:</strong> When I print jobs in scheduler, I see that their <strong>enqueued_at</strong> param is set to <strong>None</strong>, am I missing something really simple?</p>