1👍
✅
We found that the problem occured when using a Pool, regardless of if we used the db connection inside the function, creating multiple child processed was causing the problem. To solve it, simply connection.close()
before forking the process.
Source:stackexchange.com