Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions app/jobs/schedule_daily_tasks_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment thread
dmbf29 marked this conversation as resolved.
tomorrow_matches = competition.matches.where(kickoff_time: Date.tomorrow.all_day)

Expand Down