diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-14 17:42:49 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-14 17:42:49 +0100 |
| commit | 9b684e7bc573ae560e9660b9c5346d5dbf262e9a (patch) | |
| tree | 6d7bc65e7fa8429599906ba210325b82f0f58b99 | |
| parent | f0bb72ce9b48c2436b3a7052637fd8bdece6a705 (diff) | |
| download | joblib-9b684e7bc573ae560e9660b9c5346d5dbf262e9a.tar.gz joblib-9b684e7bc573ae560e9660b9c5346d5dbf262e9a.zip | |
pull batches until no jobs are available
| -rw-r--r-- | worker.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -53,6 +53,7 @@ class Worker(object): if len(jobs) == 0: logging.debug("no jobs") + self._need_update = False return await self._windup() @@ -104,7 +105,6 @@ class Worker(object): while not self._need_update: await asyncio.sleep(0.01) logging.debug("polling") - self._need_update = False await self.poll(batchlimit) async def start(self, batchlimit=1): |
