Implement a non-polling flag in the DB-Extractor
This commit is contained in:
@@ -5,9 +5,10 @@
|
||||
"serverURI": "http://localhost:2222",
|
||||
"maxResultsPerMessage":100,
|
||||
"statements":{
|
||||
"poller":"'select top ' + config.maxResultsPerMessage + ' * from rpslog with (nolock) where pkey > \\'' + maxPKey + '\\' and businessModified < dateAdd(mi,-30, getdate()) order by pkey'"
|
||||
"poller":"'select top ' + config.maxResultsPerMessage + ' * from rpslog with (nolock) where pkey > \\'' + maxPKey + '\\' order by pkey'"
|
||||
},
|
||||
"pollIntervalIdle": 10000,
|
||||
"pollMode": false,
|
||||
"UP_sqlConfig": {
|
||||
"user": "casdbuser",
|
||||
"password": "4KcLao2016!",
|
||||
|
||||
@@ -99,8 +99,13 @@ try {
|
||||
});
|
||||
process.stdout.write(">" + allRows.length + ">");
|
||||
} else {
|
||||
if (config.pollMode) {
|
||||
theInterval = setInterval(runNextPoll, config.pollIntervalIdle);
|
||||
process.stdout.write(".");
|
||||
} else {
|
||||
sql.close();
|
||||
return(true);
|
||||
}
|
||||
}
|
||||
allRows=[];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user