This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new 3f94b0501 [hotfix] Fix bug in function handler
3f94b0501 is described below
commit 3f94b0501a803b744c0661301d850adad356524e
Author: Dominik Riemer <[email protected]>
AuthorDate: Fri Nov 4 13:54:10 2022 +0100
[hotfix] Fix bug in function handler
---
.../container/extensions/function/StreamPipesFunctionHandler.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/streampipes-container-extensions/src/main/java/org/apache/streampipes/container/extensions/function/StreamPipesFunctionHandler.java
b/streampipes-container-extensions/src/main/java/org/apache/streampipes/container/extensions/function/StreamPipesFunctionHandler.java
index 152011118..833022edf 100644
---
a/streampipes-container-extensions/src/main/java/org/apache/streampipes/container/extensions/function/StreamPipesFunctionHandler.java
+++
b/streampipes-container-extensions/src/main/java/org/apache/streampipes/container/extensions/function/StreamPipesFunctionHandler.java
@@ -45,8 +45,7 @@ public enum StreamPipesFunctionHandler {
public void initializeFunctions(Collection<IStreamPipesFunctionDeclarer>
functions,
String serviceGroup) {
functions.forEach(function -> {
- Runnable r = () -> function.invokeRuntime(serviceGroup);
- new Thread(r).start();
+ function.invokeRuntime(serviceGroup);
runningInstances.put(function.getFunctionId().getId(), function);
});
if (!(runningInstances.isEmpty())) {