title: Cron job not working in Whenever gem
body: <p>I have an application that contains a bunch of tasks, and every day I want to run a cron job that creates a DayTask for each Task in the database. A Task has_many DayTasks and these daytasks are what users will be checking off every day. I'm using the whenever gem but it doesn't seem to be running at all. Any ideas?</p>
  
  <p>config/schedule.rb</p>
  
  <pre><code>every 1.day, :at =&gt; "12:01am" do
    runner "Task.generate_tasks_for_day"  
  end
  </code></pre>
  
  <p>Task.rb</p>
  
  <pre><code>  def generate_tasks_for_day
      Task.all.each do |task|
        task.day_tasks.create(:target_date =&gt; Date.today)
      end 
    end 
  </code></pre>
  
  <p>result of running the 'whenever command'</p>
  
  <pre><code>1 0 * * * /bin/bash -l -c 'cd /home/grant/rails_projects/GoalTwist &amp;&amp; script/rails runner -e production '\''Task.generate_tasks_for_day'\'''
  </code></pre>
  
  <p>Note: I've been changing the times in config/schedule.rb every time I want to test run it.</p>