Skip to content

Commit

Permalink
Merge pull request #851 from niveathika/master
Browse files Browse the repository at this point in the history
Create siddhi app runtime for each start
  • Loading branch information
pcnfernando authored Jan 20, 2020
2 parents 456d755 + 921affb commit c7f5fc6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,12 @@ public Response startWithVariables(String appStartRequestString) {
DebugRuntime runtimeHolder = new DebugRuntime(siddhiAppName, siddhiApp, appStartRequest.getVariables());
EditorDataHolder.getSiddhiAppMap().put(siddhiAppName, runtimeHolder);

} else {
// Temporary fix for https://github.com/siddhi-io/siddhi/issues/1616
DebugRuntime existingRuntime = EditorDataHolder.getSiddhiAppMap().get(siddhiAppName);
String siddhiApp = existingRuntime.getSiddhiApp();
DebugRuntime runtimeHolder = new DebugRuntime(siddhiAppName, siddhiApp);
EditorDataHolder.getSiddhiAppMap().put(siddhiAppName, runtimeHolder);
}
return start(siddhiAppName);
}
Expand Down

0 comments on commit c7f5fc6

Please sign in to comment.