foodsoft/config/schedule.rb
Patrick Gansterer 6185e18cc5 Notify users also about tasks which are not on sundays (PR #494)
notify_users_of_weekly_task notifies workgroups about tasks with and due
date of 7 days in the future. Call it every day to notify users of all tasks.
2017-08-21 16:01:36 +02:00

13 lines
429 B
Ruby

# Use this file to define all tasks, which should be executed by cron
# Learn more: http://github.com/javan/whenever
# Upcoming tasks notifier
every :day, :at => '7:20 am' do
rake "multicoops:run TASK=foodsoft:notify_upcoming_tasks"
rake "multicoops:run TASK=foodsoft:notify_users_of_weekly_task"
end
# Weekly taks
every :sunday, :at => '7:14 am' do
rake "multicoops:run TASK=foodsoft:create_upcoming_periodic_tasks"
end