this negatively affects my code because I have callbacks on both query() and end() and the end() callback needs to assume all the query() callbacks have already been called so it can shutdown the script etc. I tried looking into a fix but was more involved across repos will need to look again
The pool.end callback/promise should resolve after the last pool.query finishes but that doesn't happen:
result:
this negatively affects my code because I have callbacks on both query() and end() and the end() callback needs to assume all the query() callbacks have already been called so it can shutdown the script etc. I tried looking into a fix but was more involved across repos will need to look again