I can email you a demo privately , but basically I'm triggering a job running 20,000 facts against a rule set via http call - something like
localhost.com/rule-job?jobno=1234 ... If hit enter twice or refresh before the first job is finished, the whole thing crashes.
This pulls all the facts from the db and runs them against the rules
Generally what I have to do is:
session.match().then(
function() {
console.log('Rule matching done.');
session.dispose();
nools.deleteFlow(flow);
next();
}
); If I don't destroy the flow then app crashes on the second run with the same error.
Let me know if you need more details.