I'm trying to use either whenever/rufus-scheduler gems to schedule rake tasks to run in Sinatra. I can't seem it get the tasks to run.
Here is what I've been trying:
class App < Sinatra::Base
...
configure :development do
every 1.minute do
p "The task is running"
end
end
end
Any ideas why this isn't working? Is this the best place to call this?