Skip to content

Commit 23dcafa

Browse files
committed
Add comments.
1 parent 744478b commit 23dcafa

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sdks/python/apache_beam/runners/worker/worker_pool_main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ def StopWorker(
190190
_LOGGER.info("Stopping worker %s" % stop_worker_request.worker_id)
191191
kill_process_gracefully(worker_process)
192192

193+
# applicable for thread mode to ensure thread cleanup by
194+
# unblocking the harness request stream.
193195
worker_thread_harness = self._worker_threads.pop(
194196
stop_worker_request.worker_id, None)
195197
if worker_thread_harness:

0 commit comments

Comments
 (0)