Skip to content

Commit 01c7fae

Browse files
authored
Merge pull request #48 from Myyyvothrr/main
fix stopping after deserialize error, remove duplicate pipeline init
2 parents 926efc2 + 525a6d8 commit 01c7fae

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/java/org/texttechnologylab/DockerUnifiedUIMAInterface/DUUIComposer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,6 @@ public void run(JCas jc, String name) throws Exception {
885885
if (_instantiatedPipeline == null || _instantiatedPipeline.isEmpty()) {
886886
instantiate_pipeline();
887887
}
888-
instantiate_pipeline();
889888
JCas start = run_pipeline(name,jc,0,_instantiatedPipeline);
890889

891890
if(_storage!=null) {

src/main/java/org/texttechnologylab/DockerUnifiedUIMAInterface/driver/IDUUIInstantiatedPipelineComponent.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ public static void process(JCas jc, IDUUIInstantiatedPipelineComponent comp, DUU
152152
catch(Exception e) {
153153
System.err.printf("Caught exception printing response %s\n",new String(resp.body(), StandardCharsets.UTF_8));
154154

155+
// TODO better error handleing flow?
156+
comp.addComponent(queue.getValue0());
157+
155158
// TODO handle error docs for db here too?
156159

157160
throw e;

0 commit comments

Comments
 (0)