diff --git a/config/schedule.rb b/config/schedule.rb index 4be9edd3a9..5da085a790 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -36,8 +36,9 @@ def local(time) "07:00 pm" ].map { |t| local(t) } -REPORTS_REFRESH_FREQUENCY = CountryConfig.current_country?("India") ? :sunday : :day -REPORTS_CACHE_REFRESH_TIME = CountryConfig.current_country?("India") ? "12:00 pm" : "04:30 am" +REPORTS_REFRESH_FREQUENCY = CountryConfig.current_country?("India") ? :saturday : :day +REPORTS_REFRESH_TIME = CountryConfig.current_country?("India") ? "05:00 pm" : "12:30 am" +REPORTS_CACHE_REFRESH_TIME = CountryConfig.current_country?("India") ? "11:55 pm" : "04:30 am" every :day, at: FOLLOW_UP_TIMES, roles: [:cron] do rake "db:refresh_daily_follow_ups_and_registrations" @@ -73,7 +74,7 @@ def local(time) rake "exotel_tasks:whitelist_patient_phone_numbers" end -every REPORTS_REFRESH_FREQUENCY, at: local("12:30 am"), roles: [:cron] do +every REPORTS_REFRESH_FREQUENCY, at: local(REPORTS_REFRESH_TIME), roles: [:cron] do rake "db:refresh_reporting_views" end