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

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

                Author: ASF GitHub Bot
            Created on: 11/May/18 23:29
            Start Date: 11/May/18 23:29
    Worklog Time Spent: 10m 
      Work Description: axelmagn commented on a change in pull request #5262: 
[BEAM-2588] WIP Portability Runner Job Service
URL: https://github.com/apache/beam/pull/5262#discussion_r187753840
 
 

 ##########
 File path: 
runners/java-fn-execution/src/main/java/org/apache/beam/runners/fnexecution/jobsubmission/JobPreparation.java
 ##########
 @@ -0,0 +1,46 @@
+/*
+ * 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 org.apache.beam.runners.fnexecution.jobsubmission;
+
+import com.google.auto.value.AutoValue;
+import com.google.protobuf.Struct;
+import org.apache.beam.model.pipeline.v1.RunnerApi.Pipeline;
+import org.apache.beam.runners.fnexecution.GrpcFnServer;
+import org.apache.beam.runners.fnexecution.artifact.ArtifactStagingService;
+
+/** A job that has been prepared, but not invoked. */
+@AutoValue
+public abstract class JobPreparation {
+  public static Builder builder() {
+    return new AutoValue_JobPreparation.Builder();
+  }
+
+  public abstract String id();
+  public abstract Pipeline pipeline();
+  public abstract Struct options();
+  public abstract GrpcFnServer<ArtifactStagingService> stagingService();
+
+  @AutoValue.Builder
+  abstract static class Builder {
+    abstract Builder setId(String id);
+    abstract Builder setPipeline(Pipeline pipeline);
+    abstract Builder setOptions(Struct options);
+    abstract Builder setStagingService(GrpcFnServer<ArtifactStagingService> 
stagingService);
 
 Review comment:
   key decision: the artifact staging token is the suitable item to return 
here.  Because of the expected tight coupling between JobService and 
ArtifactStagingService, a staging token should be enough information for a 
runner or worker to construct an ArtifactRetrievalService or ArtifactSource on 
demand.

----------------------------------------------------------------
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: 101349)
    Time Spent: 5h 20m  (was: 5h 10m)

> Portable Flink Runner Job API
> -----------------------------
>
>                 Key: BEAM-2588
>                 URL: https://issues.apache.org/jira/browse/BEAM-2588
>             Project: Beam
>          Issue Type: New Feature
>          Components: runner-flink
>            Reporter: Kenneth Knowles
>            Assignee: Axel Magnuson
>            Priority: Major
>              Labels: portability
>          Time Spent: 5h 20m
>  Remaining Estimate: 0h
>
> The portable Flink runner needs to be wired into a job server so that it can 
> accept jobs the job api (https://s.apache.org/beam-job-api).



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

Reply via email to