I am trying to set up a cron task for a model in a redmine plugin. The Whenever gem looked like the best option. Alas, it does not seem to do anything.
I have set up the gem, both in the config folder of the plugin and the primary one. I added it to the crontab (using the whenever -i command) have reset the server. The action was not run, and no log was generated
here is the schedule.rb file.
set :output, "/path/to/my/cron_log.log"
every 1.day, :at => '9:00 am' do
runner "pluginMailMethod.send_emails"
end
every :thursday, :at => '4:20 pm' do
runner "pluginMailMethod.send_emails"
end