[ https://issues.apache.org/jira/browse/BEAM-4071?focusedWorklogId=92194&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-92194 ]
ASF GitHub Bot logged work on BEAM-4071: ---------------------------------------- Author: ASF GitHub Bot Created on: 18/Apr/18 18:08 Start Date: 18/Apr/18 18:08 Worklog Time Spent: 10m Work Description: bsidhom commented on a change in pull request #5150: [BEAM-4071] Add Portable Runner Job API shim URL: https://github.com/apache/beam/pull/5150#discussion_r182505797 ########## File path: runners/core-construction-java/src/main/java/org/apache/beam/runners/core/construction/ArtifactServiceStager.java ########## @@ -87,26 +87,27 @@ private ArtifactServiceStager(Channel channel, int bufferSize) { this.bufferSize = bufferSize; } - public void stage(Iterable<File> files) throws IOException, InterruptedException { - final Map<File, CompletionStage<ArtifactMetadata>> futures = new HashMap<>(); - for (File file : files) { + public String stage(Iterable<FileToStage> files) throws IOException, InterruptedException { + final Map<FileToStage, CompletionStage<ArtifactMetadata>> futures = new HashMap<>(); + for (FileToStage file : files) { futures.put(file, MoreFutures.supplyAsync(new StagingCallable(file), executorService)); } CompletionStage<StagingResult> stagingResult = MoreFutures.allAsList(futures.values()) .thenApply(ignored -> new ExtractStagingResultsCallable(futures).call()); - stageManifest(stagingResult); + return stageManifest(stagingResult); } - private void stageManifest(CompletionStage<StagingResult> stagingFuture) + private String stageManifest(CompletionStage<StagingResult> stagingFuture) throws InterruptedException { try { StagingResult stagingResult = MoreFutures.get(stagingFuture); Review comment: Good idea. Created https://issues.apache.org/jira/browse/BEAM-4116. ---------------------------------------------------------------- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 92194) Time Spent: 8.5h (was: 8h 20m) > Portable Runner Job API shim > ---------------------------- > > Key: BEAM-4071 > URL: https://issues.apache.org/jira/browse/BEAM-4071 > Project: Beam > Issue Type: New Feature > Components: runner-core > Reporter: Ben Sidhom > Assignee: Ben Sidhom > Priority: Minor > Time Spent: 8.5h > Remaining Estimate: 0h > > There needs to be a way to execute Java-SDK pipelines against a portable job > server. The job server itself is expected to be started up out-of-band. The > "PortableRunner" should take an option indicating the Job API endpoint and > defer other runner configurations to the backend itself. -- This message was sent by Atlassian JIRA (v7.6.3#76005)