foodsoft/config/schedule.rb
2019-10-29 18:06:53 +01:00

23 lines
693 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
# Import and assign bank transactions
every :weekday, :at => %w(5:56am 6:04pm) do
rake "multicoops:run TASK=foodsoft:import_and_assign_bank_transactions"
end
# Weekly taks
every :sunday, :at => '7:14 am' do
rake "multicoops:run TASK=foodsoft:create_upcoming_periodic_tasks"
end
# Finish ended orders
every 1.minute do
rake "multicoops:run TASK=foodsoft:finish_ended_orders"
end