[
https://issues.apache.org/jira/browse/BEAM-4204?focusedWorklogId=99777&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-99777
]
ASF GitHub Bot logged work on BEAM-4204:
----------------------------------------
Author: ASF GitHub Bot
Created on: 08/May/18 23:00
Start Date: 08/May/18 23:00
Worklog Time Spent: 10m
Work Description: angoenka commented on a change in pull request #5301:
[BEAM-4204] Splitting ULR in portable runner stub and job service
URL: https://github.com/apache/beam/pull/5301#discussion_r186891838
##########
File path: sdks/python/apache_beam/runners/portability/job_service.py
##########
@@ -0,0 +1,294 @@
+#
+# 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.
+#
+import functools
+import logging
+import os
+import Queue as queue
+import subprocess
+import threading
+import time
+import traceback
+import uuid
+from concurrent import futures
+
+import grpc
+from google.protobuf import text_format
+
+from apache_beam.portability.api import beam_fn_api_pb2_grpc
+from apache_beam.portability.api import beam_job_api_pb2
+from apache_beam.portability.api import beam_job_api_pb2_grpc
+from apache_beam.portability.api import endpoints_pb2
+from apache_beam.runners.portability import fn_api_runner
+
+TERMINAL_STATES = [
+ beam_job_api_pb2.JobState.DONE,
+ beam_job_api_pb2.JobState.STOPPED,
+ beam_job_api_pb2.JobState.FAILED,
+ beam_job_api_pb2.JobState.CANCELLED,
+]
+
+
+class JobServicer(beam_job_api_pb2_grpc.JobServiceServicer):
+ """
+ Experimental: No backward compatibility guaranteed.
+ Servicer for the Beam Job API.
+
+ Manages one or more pipelines, possibly concurrently.
+
+ This JobService uses a basic local implementation of runner to run the job.
Review comment:
Agree, Renaming it to LocalJobService.
----------------------------------------------------------------
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 99777)
Time Spent: 1h 40m (was: 1.5h)
> Python: PortableRunner - p.run() via given JobService
> -----------------------------------------------------
>
> Key: BEAM-4204
> URL: https://issues.apache.org/jira/browse/BEAM-4204
> Project: Beam
> Issue Type: New Feature
> Components: sdk-py-core
> Reporter: Eugene Kirpichov
> Assignee: Eugene Kirpichov
> Priority: Major
> Fix For: Not applicable
>
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> Like BEAM-4071 but for Python. Is this fully encompassed by
> [https://github.com/apache/beam/blob/master/sdks/python/apache_beam/runners/portability/universal_local_runner.py]
> ?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)