title: How do you run a rails rake task from heroku CLI?
body: <p>I have a task called extract. According to <a href="https://albertogrespan.com/blog/heroku-scheduler-and-rails-rake-tasks/" rel="nofollow noreferrer">this</a> blog post, all I'd need do to run the task manually (from the console) is:</p>
  
  <pre><code>heroku run rake extract:start
  </code></pre>
  
  <p>But I get the following error:</p>
  
  <p>NameError (undefined local variable or method `extract' for main:Object)</p>
  
  <p>I have also tried: <code>heroku run rake extract</code> as per instructions <a href="https://devcenter.heroku.com/articles/scheduler" rel="nofollow noreferrer">here</a>, but get the same error</p>