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.
This commit is contained in:
Patrick Gansterer 2017-08-21 16:01:36 +02:00 committed by wvengen
parent 329ac66cf1
commit 6185e18cc5

View file

@ -4,10 +4,10 @@
# Upcoming tasks notifier # Upcoming tasks notifier
every :day, :at => '7:20 am' do every :day, :at => '7:20 am' do
rake "multicoops:run TASK=foodsoft:notify_upcoming_tasks" rake "multicoops:run TASK=foodsoft:notify_upcoming_tasks"
rake "multicoops:run TASK=foodsoft:notify_users_of_weekly_task"
end end
# Weekly taks # Weekly taks
every :sunday, :at => '7:14 am' do every :sunday, :at => '7:14 am' do
rake "multicoops:run TASK=foodsoft:create_upcoming_periodic_tasks" rake "multicoops:run TASK=foodsoft:create_upcoming_periodic_tasks"
rake "multicoops:run TASK=foodsoft:notify_users_of_weekly_task" end
end