From cb54259e9c1d80f2b25784b8e58b6d9be142e28d Mon Sep 17 00:00:00 2001 From: Akshatha <71076330+qptr@users.noreply.github.com> Date: Tue, 5 Sep 2023 12:36:18 +0530 Subject: [PATCH] Disable experiments in India temporarily (#5267) **Story card:** [sc-11112](https://app.shortcut.com/simpledotorg/story/11112/p1-bsnl-smses-failing-with-401) ## Because Smses in India are failing with 401: Unauthorized since 2nd Sep. Disabling experiments till the bug is fixed so we're not bombarding BSNL. --- lib/tasks/experiments.rake | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/tasks/experiments.rake b/lib/tasks/experiments.rake index 0b6ef30161..f1905a840d 100644 --- a/lib/tasks/experiments.rake +++ b/lib/tasks/experiments.rake @@ -1,9 +1,11 @@ namespace :experiments do desc "Conduct an experiment for the day and send out notifications" task conduct_daily: :environment do - Time.use_zone(CountryConfig.current[:time_zone]) do - Experimentation::Runner.call - AppointmentNotification::ScheduleExperimentReminders.call + unless CountryConfig.current_country?("India") + Time.use_zone(CountryConfig.current[:time_zone]) do + Experimentation::Runner.call + AppointmentNotification::ScheduleExperimentReminders.call + end end end end