I am trying to get whenever
to run my rake task but it doesn't work.
#Command Line
$ whenever -w
[write] crontab file written
#schedule.rb
every :year, :at => "2014-07-25 17:39:48 -0700" do
rake 'timeperiod:create_timeperiod'
end
The rake command saves a model in the db and puts
text so I would know if it worked (which it does when I run rake
). Is there syntactically something wrong with what I did?
Note, the time and date in schedule.rb
is arbitrary, I keep changing it to two minutes from now before testing.