cu8-sequelize-oracle icon indicating copy to clipboard operation
cu8-sequelize-oracle copied to clipboard

Working great, except when I kill express, does not exit

Open jonpopp opened this issue 7 years ago • 1 comments

This is working great for me except when I kill express, the terminal hangs. This only happens after I run a query, otherwise I can kill express just fine.

Here's my request:

exports.getUser = function(req, res, next) { var params = req.params; Users.findOne( { where: {userId: params.id}, include: [ { all: true, nested: true } ]} ) .then(function (allNestedUsers) { console.log("done fetching nested user with joins "); res.json(allNestedUsers); }); };

jonpopp avatar May 17 '17 18:05 jonpopp

here are my pool settings: pool: { max: 50, min: 0, timeout : 600, queueRequests: true, queueTimeout: 600000, increment : 1 }

jonpopp avatar May 17 '17 18:05 jonpopp