diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-13 21:12:15 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-13 21:12:15 +0100 |
| commit | f0bb72ce9b48c2436b3a7052637fd8bdece6a705 (patch) | |
| tree | 67b19b8f1aadc58dc415e8e50c6817ebc0b9a057 | |
| parent | c78f3678a70dffa87c2b1606e1d3d8ffbcd4ed44 (diff) | |
| download | joblib-f0bb72ce9b48c2436b3a7052637fd8bdece6a705.tar.gz joblib-f0bb72ce9b48c2436b3a7052637fd8bdece6a705.zip | |
sleep a bit when idling
| -rw-r--r-- | worker.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -102,7 +102,7 @@ class Worker(object): """Request a poll after a push or a timer.""" while True: while not self._need_update: - await asyncio.sleep(0) + await asyncio.sleep(0.01) logging.debug("polling") self._need_update = False await self.poll(batchlimit) |
