diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-09 18:58:00 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-09 18:58:00 +0100 |
| commit | 34861a5b7284de2b616e0f376dc7fbbbdbb7ea3b (patch) | |
| tree | 16b97a71941f29d9a545c553b74f9a287b59356e | |
| parent | 535a14f4ea1973eaabcaf4624604a42335b15981 (diff) | |
| download | joblib-34861a5b7284de2b616e0f376dc7fbbbdbb7ea3b.tar.gz joblib-34861a5b7284de2b616e0f376dc7fbbbdbb7ea3b.zip | |
do not fail on every batch
| -rw-r--r-- | worker.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -48,7 +48,7 @@ class Worker(object): continue await self._windup() - critical_error = True + critical_error = False failed = [] for jobid, payload, priority in jobs: try: @@ -60,6 +60,8 @@ class Worker(object): critical_error = err.args[1] if critical_error: break + else: + critical_error = True # default if critical_error: await self._queue.reset([j[0] for j in jobs]) logging.warning("batch failed, reset") |
