summaryrefslogtreecommitdiff
path: root/api.py
diff options
context:
space:
mode:
authorschneefux <schneefux+github@schneefux.xyz>2017-02-16 17:34:03 +0100
committerGitHub <noreply@github.com>2017-02-16 17:34:03 +0100
commit2256d1c371c93ca6313bbce9b126f69a3d2bad36 (patch)
tree7946eb751fa0eb1ce16b71f9360c659a5ad449cf /api.py
parent2dc20a4881bc7b4172b7cb19a5688aab4f91ec19 (diff)
downloadapigrabber-2256d1c371c93ca6313bbce9b126f69a3d2bad36.tar.gz
apigrabber-2256d1c371c93ca6313bbce9b126f69a3d2bad36.zip
reduce job length, increase worker count to keep up with blitz data volume (#22)
Diffstat (limited to 'api.py')
-rw-r--r--api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/api.py b/api.py
index afe4055..d178828 100644
--- a/api.py
+++ b/api.py
@@ -127,7 +127,7 @@ class Apigrabber(object):
async def crawl_region(self, region):
"""Get the match history from a region."""
- default_diff = 15 # default job length in minutes
+ default_diff = 5 # default job length in minutes
async with self._pool.acquire() as con:
while True:
try:
@@ -207,7 +207,7 @@ class Apigrabber(object):
for region in self.regions:
await self.request_update(region)
- for _ in range(3):
+ for _ in range(5):
# supports scaling :]
asyncio.ensure_future(self.crawl_region(region))