Skip to content

Commit

Permalink
increase batch size and thresholds for new api limits
Browse files Browse the repository at this point in the history
  • Loading branch information
danReynolds committed Dec 30, 2017
1 parent 8ddd115 commit 80c6e43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/workers/match_worker.rb
Expand Up @@ -4,7 +4,7 @@ class MatchWorker
include RiotApi

sidekiq_throttle({
threshold: { limit: 450, period: 10.seconds }
threshold: { limit: 1400, period: 10.seconds }
})

def perform(game_id)
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/scheduler.rake
Expand Up @@ -10,7 +10,7 @@ include ActionView::Helpers::SanitizeHelper
# The API limit is 500 requests every 10 seconds = 180000 every hour
# Leave a percentage of requests that can be run per hour for manual requests
# made by the client and testing
MATCH_BATCH_SIZE = 100000
MATCH_BATCH_SIZE = 500000

END_MATCH_INDEX_THRESHOLD = 500000

Expand Down

0 comments on commit 80c6e43

Please sign in to comment.