[ 
https://issues.apache.org/jira/browse/BEAM-3486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16331543#comment-16331543
 ] 

ASF GitHub Bot commented on BEAM-3486:
--------------------------------------

robertwb closed pull request #4423: [BEAM-3486] Fixing Work Progress reporting
URL: https://github.com/apache/beam/pull/4423
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/sdks/python/apache_beam/runners/worker/sdk_worker.py 
b/sdks/python/apache_beam/runners/worker/sdk_worker.py
index 570371bb77f..3846c545ab8 100644
--- a/sdks/python/apache_beam/runners/worker/sdk_worker.py
+++ b/sdks/python/apache_beam/runners/worker/sdk_worker.py
@@ -161,10 +161,9 @@ def task():
   def _request_process_bundle_progress(self, request):
 
     def task():
-      self._execute(
-          lambda: self._instruction_id_vs_worker[
-              request.instruction_id].do_instruction(request),
-          request)
+      self._execute(lambda: self._instruction_id_vs_worker[getattr(
+          request, request.WhichOneof('request')
+      ).instruction_reference].do_instruction(request), request)
 
     self._progress_thread_pool.submit(task)
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Progress reporting for python sdk fix
> -------------------------------------
>
>                 Key: BEAM-3486
>                 URL: https://issues.apache.org/jira/browse/BEAM-3486
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>            Reporter: Ankur Goenka
>            Assignee: Ankur Goenka
>            Priority: Trivial
>             Fix For: 2.3.0
>
>
> Python sdk was not reporting progress correctly



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to