feedback on drained queue

This commit is contained in:
Niko Storni 2019-10-02 18:15:24 +02:00
parent 42f2a6386c
commit 7bdf527ec9

View file

@ -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) => {