Added whenever to manage cronjobs.
This commit is contained in:
parent
9ad77f5256
commit
d347e2404b
3 changed files with 22 additions and 1 deletions
15
config/schedule.rb
Normal file
15
config/schedule.rb
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# 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 foodsoft:notify_upcoming_tasks"
|
||||
end
|
||||
|
||||
# Weekly taks
|
||||
every :sunday, :at => '7:14 am' do
|
||||
rake "multicoops:run foodsoft:create_upcoming_weekly_tasks"
|
||||
rake "multicoops:run foodsoft:notify_users_of_weekly_task"
|
||||
end
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue