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

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

                Author: ASF GitHub Bot
            Created on: 30/Mar/22 14:38
            Start Date: 30/Mar/22 14:38
    Worklog Time Spent: 10m 
      Work Description: riteshghorse commented on a change in pull request 
#16957:
URL: https://github.com/apache/beam/pull/16957#discussion_r838625510



##########
File path: sdks/go/pkg/beam/core/runtime/harness/worker_status.go
##########
@@ -0,0 +1,91 @@
+// 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.
+package harness
+
+import (
+       "context"
+       "io"
+       "runtime"
+       "sync"
+       "sync/atomic"
+       "time"
+
+       "github.com/apache/beam/sdks/v2/go/pkg/beam/internal/errors"
+       "github.com/apache/beam/sdks/v2/go/pkg/beam/log"
+       fnpb "github.com/apache/beam/sdks/v2/go/pkg/beam/model/fnexecution_v1"
+       "google.golang.org/grpc"
+)
+
+// workerStatusHandler stores the communication information of WorkerStatus 
API.
+type workerStatusHandler struct {
+       conn     *grpc.ClientConn
+       shutdown int32
+}
+
+func newWorkerStatusHandler(ctx context.Context, endpoint string) 
(*workerStatusHandler, error) {
+       sconn, err := dial(ctx, endpoint, 60*time.Second)
+       if err != nil {
+               return &workerStatusHandler{}, errors.Wrapf(err, "failed to 
connect: %v\n", endpoint)

Review comment:
       Makes sense




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

    Worklog Id:     (was: 750165)
    Time Spent: 8h 10m  (was: 8h)

> Expose status api from Go SDK Harness
> -------------------------------------
>
>                 Key: BEAM-13829
>                 URL: https://issues.apache.org/jira/browse/BEAM-13829
>             Project: Beam
>          Issue Type: Sub-task
>          Components: sdk-go
>            Reporter: Ritesh Ghorse
>            Assignee: Ritesh Ghorse
>            Priority: P2
>          Time Spent: 8h 10m
>  Remaining Estimate: 0h
>
> Expose status api handle from Go SDK harness to runner.
> Doc link: 
> https://docs.google.com/document/d/1dMTD5_sKdzLcnoe0ZsQU5Wf9q11uliyYgFnnOZQDzuI/edit?usp=sharing



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to