npeltier commented on a change in pull request #5: SLING-7707 Create Executor
Pipe
URL:
https://github.com/apache/sling-org-apache-sling-pipes/pull/5#discussion_r215869202
##########
File path: src/main/java/org/apache/sling/pipes/PipeBuilder.java
##########
@@ -345,4 +345,11 @@
* @throws PersistenceException in case something goes wrong in the job
creation
*/
Job runAsync(Map bindings) throws PersistenceException;
+
+ /**
+ * run referenced pipes in parallel
+ * @param numThreads number of threads to use for running the contained
pipes
+ * @return set of resource path, merged output of pipes execution (order
is arbitrary)
+ */
+ ExecutionResult runParallel(int numThreads) throws Exception;
Review comment:
i guess i would have prefer execute or something , calling that method with
`1` thread is very legit and will be used (you just want a series of N pipes to
be executed sequentially, with one call)
----------------------------------------------------------------
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]
With regards,
Apache Git Services