pabloem commented on a change in pull request #12352: URL: https://github.com/apache/beam/pull/12352#discussion_r459597380
########## File path: sdks/python/apache_beam/runners/worker/opcounters.py ########## @@ -202,6 +205,17 @@ def __init__( self._sample_counter = 0 self._next_sample = 0 + if consumers and len(consumers): Review comment: You can just do `if consumers` here. As discussed, there may be more than one consumer, so worth thinking about what to do in that case. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org