2012-12-26 14:03:35 +01:00
|
|
|
# Use this file to define all tasks, which should be executed by cron
|
|
|
|
# Learn more: http://github.com/javan/whenever
|
|
|
|
|
|
|
|
# Upcoming tasks notifier
|
2023-05-12 13:01:12 +02:00
|
|
|
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'
|
2012-12-26 14:03:35 +01:00
|
|
|
end
|
|
|
|
|
2017-01-17 23:12:31 +01:00
|
|
|
# Import and assign bank transactions
|
2023-05-12 13:01:12 +02:00
|
|
|
every :weekday, at: %w[5:56am 6:04pm] do
|
|
|
|
rake 'multicoops:run TASK=foodsoft:import_and_assign_bank_transactions'
|
2017-01-17 23:12:31 +01:00
|
|
|
end
|
|
|
|
|
2012-12-26 14:03:35 +01:00
|
|
|
# Weekly taks
|
2023-05-12 13:01:12 +02:00
|
|
|
every :sunday, at: '7:14 am' do
|
|
|
|
rake 'multicoops:run TASK=foodsoft:create_upcoming_periodic_tasks'
|
2017-08-21 16:01:36 +02:00
|
|
|
end
|
2017-10-12 00:20:30 +02:00
|
|
|
|
|
|
|
# Finish ended orders
|
|
|
|
every 1.minute do
|
2023-05-12 13:01:12 +02:00
|
|
|
rake 'multicoops:run TASK=foodsoft:finish_ended_orders'
|
2017-10-12 00:20:30 +02:00
|
|
|
end
|