diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-06 20:48:44 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-06 20:48:44 +0100 |
| commit | 69055ed679f543de11524e7a310838311831d95a (patch) | |
| tree | 97ce404b723c87d95bd23c8c6ec4e8c08789770e | |
| parent | 32389f971fd299a9284d40a608bea0bd3204aff4 (diff) | |
| download | joblib-69055ed679f543de11524e7a310838311831d95a.tar.gz joblib-69055ed679f543de11524e7a310838311831d95a.zip | |
windup after acquiring, don't leak connections
| -rw-r--r-- | worker.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -39,7 +39,6 @@ class Worker(object): async def run(self, batchlimit=1): """Start jobs forever.""" while True: - await self._windup() jobs = await self._queue.acquire(jobtype=self._jobtype, length=batchlimit) @@ -48,6 +47,7 @@ class Worker(object): # nothing to do continue + await self._windup() error = None try: for jobid, payload, priority in jobs: |
