Skip to content

Commit

Permalink
Merge pull request #48 from Myyyvothrr/main
Browse files Browse the repository at this point in the history
fix stopping after deserialize error, remove duplicate pipeline init
  • Loading branch information
Myyyvothrr authored Aug 11, 2023
2 parents 926efc2 + 525a6d8 commit 01c7fae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,6 @@ public void run(JCas jc, String name) throws Exception {
if (_instantiatedPipeline == null || _instantiatedPipeline.isEmpty()) {
instantiate_pipeline();
}
instantiate_pipeline();
JCas start = run_pipeline(name,jc,0,_instantiatedPipeline);

if(_storage!=null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ public static void process(JCas jc, IDUUIInstantiatedPipelineComponent comp, DUU
catch(Exception e) {
System.err.printf("Caught exception printing response %s\n",new String(resp.body(), StandardCharsets.UTF_8));

// TODO better error handleing flow?
comp.addComponent(queue.getValue0());

// TODO handle error docs for db here too?

throw e;
Expand Down

0 comments on commit 01c7fae

Please sign in to comment.