You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PubSub: Default thread-based subscriber Policy's on_response() implementation degenerates into series of synchronous calls because of debug statement #4167
While testing out the new PubSub API (v 0.28.3), I noticed that the default thread-based Policy, which uses a ThreadPoolExecutor(max_workers=10) seemed to be executing the subscriber callbacks sequentially, instead of asynchronously. Upon introspection of the source, it looks like the above referenced code:
changed the title [-]Default thread-based PubSub subscriber Policy's on_response() implementation degenerates into series of synchronous calls because of debug statement[/-][+]PubSub: Default thread-based subscriber Policy's on_response() implementation degenerates into series of synchronous calls because of debug statement[/+]on Oct 12, 2017
I am noticing @jeffkpayne already fixing the problem, so I am just planning on taking that PR when it is provided. I will knock it out this afternoon if he does not get to it in time, since obviously this is pretty critical to fix.
Activity
[-]Default thread-based PubSub subscriber Policy's on_response() implementation degenerates into series of synchronous calls because of debug statement[/-][+]PubSub: Default thread-based subscriber Policy's on_response() implementation degenerates into series of synchronous calls because of debug statement[/+]theacodes commentedon Oct 12, 2017
googleapis#4167 Remove debug logging call
Move debug logging call in Future.add_done_callback (googleapis#4167)
lukesneeringer commentedon Oct 12, 2017
I am noticing @jeffkpayne already fixing the problem, so I am just planning on taking that PR when it is provided. I will knock it out this afternoon if he does not get to it in time, since obviously this is pretty critical to fix.
jeffkpayne commentedon Oct 12, 2017
@lukesneeringer trying to get my local env setup to run the system tests, etc, as outlined in CONTRIBUTING.rst now...
lukesneeringer commentedon Oct 12, 2017
@jeffkpayne If you have unit tests working and coverage, feel free to build a PR and I will deal with system tests for you. :-)
Move debug logging call in Future.add_done_callback (googleapis#4167)