The onStat function logs "complete" when publishing the "complete" event.
authorMike Taylor <mike@indexdata.com>
Fri, 6 Jun 2014 16:45:28 +0000 (17:45 +0100)
committerMike Taylor <mike@indexdata.com>
Fri, 6 Jun 2014 16:45:28 +0000 (17:45 +0100)
src/mkws-team.js

index 2e6db95..25a24d6 100644 (file)
@@ -126,6 +126,7 @@ function team($, teamName) {
       queue("firstrecords").publish(hitcount);
     }
     if (parseInt(data.activeclients[0], 10) === 0) {
+      log("complete");
       queue("complete").publish(hitcount);
     }
   }