{"action":"created","issue":{"url":"https://api.github.com/repos/nutso/redmine-plugin-recurring-tasks/issues/72","repository_url":"https://api.github.com/repos/nutso/redmine-plugin-recurring-tasks","labels_url":"https://api.github.com/repos/nutso/redmine-plugin-recurring-tasks/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/nutso/redmine-plugin-recurring-tasks/issues/72/comments","events_url":"https://api.github.com/repos/nutso/redmine-plugin-recurring-tasks/issues/72/events","html_url":"https://github.com/nutso/redmine-plugin-recurring-tasks/issues/72","id":73185524,"number":72,"title":"Documentation: using Rufus-Scheduler as an alternative to cron","user":{"login":"jmfarina","id":6587473,"avatar_url":"https://avatars.githubusercontent.com/u/6587473?v=3","gravatar_id":"","url":"https://api.github.com/users/jmfarina","html_url":"https://github.com/jmfarina","followers_url":"https://api.github.com/users/jmfarina/followers","following_url":"https://api.github.com/users/jmfarina/following{/other_user}","gists_url":"https://api.github.com/users/jmfarina/gists{/gist_id}","starred_url":"https://api.github.com/users/jmfarina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmfarina/subscriptions","organizations_url":"https://api.github.com/users/jmfarina/orgs","repos_url":"https://api.github.com/users/jmfarina/repos","events_url":"https://api.github.com/users/jmfarina/events{/privacy}","received_events_url":"https://api.github.com/users/jmfarina/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nutso/redmine-plugin-recurring-tasks/labels/documentation","name":"documentation","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"nutso","id":6237027,"avatar_url":"https://avatars.githubusercontent.com/u/6237027?v=3","gravatar_id":"","url":"https://api.github.com/users/nutso","html_url":"https://github.com/nutso","followers_url":"https://api.github.com/users/nutso/followers","following_url":"https://api.github.com/users/nutso/following{/other_user}","gists_url":"https://api.github.com/users/nutso/gists{/gist_id}","starred_url":"https://api.github.com/users/nutso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nutso/subscriptions","organizations_url":"https://api.github.com/users/nutso/orgs","repos_url":"https://api.github.com/users/nutso/repos","events_url":"https://api.github.com/users/nutso/events{/privacy}","received_events_url":"https://api.github.com/users/nutso/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/nutso/redmine-plugin-recurring-tasks/milestones/14","html_url":"https://github.com/nutso/redmine-plugin-recurring-tasks/milestones/v1.5.0","labels_url":"https://api.github.com/repos/nutso/redmine-plugin-recurring-tasks/milestones/14/labels","id":1163733,"number":14,"title":"v1.5.0","description":"","creator":{"login":"nutso","id":6237027,"avatar_url":"https://avatars.githubusercontent.com/u/6237027?v=3","gravatar_id":"","url":"https://api.github.com/users/nutso","html_url":"https://github.com/nutso","followers_url":"https://api.github.com/users/nutso/followers","following_url":"https://api.github.com/users/nutso/following{/other_user}","gists_url":"https://api.github.com/users/nutso/gists{/gist_id}","starred_url":"https://api.github.com/users/nutso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nutso/subscriptions","organizations_url":"https://api.github.com/users/nutso/orgs","repos_url":"https://api.github.com/users/nutso/repos","events_url":"https://api.github.com/users/nutso/events{/privacy}","received_events_url":"https://api.github.com/users/nutso/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":18,"state":"closed","created_at":"2015-06-14T14:52:53Z","updated_at":"2015-09-02T11:14:12Z","due_on":"2015-06-13T04:00:00Z","closed_at":"2015-06-14T14:54:13Z"},"comments":2,"created_at":"2015-05-05T02:45:30Z","updated_at":"2016-05-03T05:32:41Z","closed_at":"2015-06-14T01:02:42Z","body":"Hello! I've used Rufus-Scheduler to check for recurrences, instead of Crontab. Maybe you'd like to add that to the documentation, as an alternative to Crontab? I'm no expert on the subject, but it seems to work and for what I've read, it should be faster and lighter in terms of resources than calling the task via crontab.\r\nAnyway, here's the configuration I've used:\r\nCreate a task in $REDMINE_HOME/config/initializers. Say, for instance, recurring_tasks.rb. Add something like this:\r\n\r\n```ruby\r\nrequire 'rubygems'\r\nrequire 'rake'\r\nrequire 'rufus-scheduler'\r\n\r\nload File.join(Rails.root, 'Rakefile')\r\n\r\nscheduler = Rufus::Scheduler.new\r\nscheduler.cron '5 0 * * *' do\r\n  task = Rake.application['redmine:recur_tasks']\r\n  task.reenable\r\n  task.invoke \r\nend\r\n```\r\n\r\nwhere in scheduler.cron you can specify the frequency in a similar fashion as you would with crontab. In the example it's set to run every day at 00:05.\r\nYou can check Rufus-Scheduler's documentation in https://github.com/jmettraux/rufus-scheduler (there are other options besides scheduler.cron).\r\nI got the idea and base configuration file from http://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails#Schedule-email-receiving-with-Rufus-Scheduler\r\n\r\nThanks for the plugin, it's very useful!"},"comment":{"url":"https://api.github.com/repos/nutso/redmine-plugin-recurring-tasks/issues/comments/216442504","html_url":"https://github.com/nutso/redmine-plugin-recurring-tasks/issues/72#issuecomment-216442504","issue_url":"https://api.github.com/repos/nutso/redmine-plugin-recurring-tasks/issues/72","id":216442504,"user":{"login":"olmayanaergi","id":17002482,"avatar_url":"https://avatars.githubusercontent.com/u/17002482?v=3","gravatar_id":"","url":"https://api.github.com/users/olmayanaergi","html_url":"https://github.com/olmayanaergi","followers_url":"https://api.github.com/users/olmayanaergi/followers","following_url":"https://api.github.com/users/olmayanaergi/following{/other_user}","gists_url":"https://api.github.com/users/olmayanaergi/gists{/gist_id}","starred_url":"https://api.github.com/users/olmayanaergi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olmayanaergi/subscriptions","organizations_url":"https://api.github.com/users/olmayanaergi/orgs","repos_url":"https://api.github.com/users/olmayanaergi/repos","events_url":"https://api.github.com/users/olmayanaergi/events{/privacy}","received_events_url":"https://api.github.com/users/olmayanaergi/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T05:32:41Z","updated_at":"2016-05-03T05:32:41Z","body":"how to add multiple e mails?"}}