From 6d2859b3dbee5c22ea7c2cafc17b0d9745c22266 Mon Sep 17 00:00:00 2001 From: schneefux Date: Tue, 14 Feb 2017 20:45:33 +0100 Subject: fix idling jobs crashing --- api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api.py') diff --git a/api.py b/api.py index 358982f..15f6288 100644 --- a/api.py +++ b/api.py @@ -166,7 +166,7 @@ class Apigrabber(object): if row_res == None: logging.warn("%s: no jobs available. idling.", region) await asyncio.sleep(60) # a minute TODO make this smarter - break + asyncio.ensure_future(self.crawl_region(region)) jobdate, delta_minutes = row_res delta = datetime.timedelta(minutes=delta_minutes) -- cgit v1.3.1