[ 
https://issues.apache.org/jira/browse/BEAM-8626?focusedWorklogId=373370&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-373370
 ]

ASF GitHub Bot logged work on BEAM-8626:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Jan/20 03:23
            Start Date: 17/Jan/20 03:23
    Worklog Time Spent: 10m 
      Work Description: angoenka commented on pull request #10598: [BEAM-8626] 
Implement status fn api handler in python sdk
URL: https://github.com/apache/beam/pull/10598#discussion_r367748598
 
 

 ##########
 File path: sdks/python/apache_beam/runners/worker/worker_status.py
 ##########
 @@ -0,0 +1,139 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+"""Worker status api handler for reporting SDK harness debug info."""
+
+from __future__ import absolute_import
+from __future__ import division
+
+import queue
+import sys
+import threading
+import traceback
+from collections import defaultdict
+
+import grpc
+
+from apache_beam.portability.api import beam_fn_api_pb2
+from apache_beam.portability.api import beam_fn_api_pb2_grpc
+from apache_beam.runners.worker.channel_factory import GRPCChannelFactory
+from apache_beam.runners.worker.worker_id_interceptor import 
WorkerIdInterceptor
+
+
+def thread_dump():
 
 Review comment:
   We have thread dump code in `sdk_worker_main.py` under `get_thread_dump`.
   Shall we reuse it or move it here.
 
----------------------------------------------------------------
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


Issue Time Tracking
-------------------

    Worklog Id:     (was: 373370)

> Implement status api handler in python sdk harness
> --------------------------------------------------
>
>                 Key: BEAM-8626
>                 URL: https://issues.apache.org/jira/browse/BEAM-8626
>             Project: Beam
>          Issue Type: Sub-task
>          Components: sdk-py-harness
>            Reporter: Yichi Zhang
>            Assignee: Yichi Zhang
>            Priority: Major
>          Time Spent: 50m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to