Skip to content

Commit

Permalink
fix(taskqueue): handle BrokenProcessPool explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKevJames committed Jan 24, 2018
1 parent f2a6b0c commit bc07576
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion taskqueue/gcloud/aio/taskqueue/taskmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ async def process(self, task):
# and at this point I'm sick of having to update the blacklist. If we
# get an exception while creating a LeaseManager, that's enough for me
# to be reasonably sure the pool is broken without needing proof.
except Exception as e: # pylint: disable=broad-except
except (concurrent.futures.process.BrokenProcessPool, Exception) as e: # pylint: disable=broad-except
log.error('process pool broke, quitting TaskManager')
log.exception(e)
self.running = False
Expand Down
2 changes: 1 addition & 1 deletion taskqueue/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setuptools.setup(
name='gcloud-aio-taskqueue',
version='1.2.4',
version='1.2.5',
description='Asyncio Python Client for Google Cloud Task Queue',
long_description=README,
namespace_packages=[
Expand Down

0 comments on commit bc07576

Please sign in to comment.