From c142fb5fe4bc42568a661cbe46c48fa0adb10a17 Mon Sep 17 00:00:00 2001 From: Douglas Berkley Date: Tue, 23 Jun 2026 15:07:54 +0700 Subject: [PATCH] removing the api call every minute during a match --- app/jobs/schedule_daily_tasks_job.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/jobs/schedule_daily_tasks_job.rb b/app/jobs/schedule_daily_tasks_job.rb index c87448d..c334678 100644 --- a/app/jobs/schedule_daily_tasks_job.rb +++ b/app/jobs/schedule_daily_tasks_job.rb @@ -8,10 +8,6 @@ def perform matches = competition.matches.where(kickoff_time: Date.today.all_day) matches.pluck(:kickoff_time).uniq.each do |kickoff_time| MatchStartedJob.set(wait_until: kickoff_time).perform_later(kickoff_time) - # Calls the API during the matches to get the current time - 150.times do |i| - MatchUpdateJob.set(wait_until: kickoff_time + i.minutes).perform_later(competition.id) - end end tomorrow_matches = competition.matches.where(kickoff_time: Date.tomorrow.all_day)