Revision: 20267
http://sourceforge.net/p/gate/code/20267
Author: ian_roberts
Date: 2017-09-30 13:34:59 +0000 (Sat, 30 Sep 2017)
Log Message:
-----------
Bug fix - batches where the enumerator gives 0 documents would hang forever
rather than completing.
Modified Paths:
--------------
gcp/trunk/src/gate/cloud/batch/BatchRunner.java
Modified: gcp/trunk/src/gate/cloud/batch/BatchRunner.java
===================================================================
--- gcp/trunk/src/gate/cloud/batch/BatchRunner.java 2017-09-15 13:33:49 UTC
(rev 20266)
+++ gcp/trunk/src/gate/cloud/batch/BatchRunner.java 2017-09-30 13:34:59 UTC
(rev 20267)
@@ -197,6 +197,9 @@
}
}, "Batch \"" + getBatchId() + "\"-job-pusher");
jobPusher.start();
+} else {
+ // no documents, so fire end of batch straight away
+ resultQueue.add(new EndOfBatchResult());
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs