feedback on drained queue
This commit is contained in:
parent
42f2a6386c
commit
7bdf527ec9
1 changed files with 4 additions and 0 deletions
|
@ -28,7 +28,11 @@ const eclient = new elasticsearch.Client({
|
|||
stream: loggerStream,
|
||||
},
|
||||
});
|
||||
|
||||
const queue = new ElasticQueue({elastic: eclient});
|
||||
queue.on('drain', function () {
|
||||
console.log('elasticsearch queue is drained');
|
||||
});
|
||||
|
||||
// Check that our syncState file exist.
|
||||
fileExists(path.join(appRoot.path, 'syncState.json'), (err, exists) => {
|
||||
|
|
Loading…
Reference in a new issue