From 2256d1c371c93ca6313bbce9b126f69a3d2bad36 Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 16 Feb 2017 17:34:03 +0100 Subject: reduce job length, increase worker count to keep up with blitz data volume (#22) --- api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api.py') 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)) -- cgit v1.3.1