From 46e4cf13a87515d51141a5095b09213715b684a8 Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 10 Mar 2017 16:17:05 +0100 Subject: sleep longer on idle --- worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'worker.py') diff --git a/worker.py b/worker.py index f6e9e04..1e16237 100644 --- a/worker.py +++ b/worker.py @@ -43,7 +43,7 @@ class Worker(object): length=batchlimit) if len(jobs) == 0: - await asyncio.sleep(0.1) + await asyncio.sleep(1) # nothing to do continue -- cgit v1.3.1