Hello everyone. Yesterday I used "sequelize": "~3.24.1", "sequelize-cli": "~2.4.0"
I have script which started by cron each 5 minutes and load some statistics to database.
Each query open new mysql connection and never close it.

After I saw that bug I downloaded "sequelize": "~4.0.0-2", "sequelize-cli": "~2.5.1"
Now I have new bug.
Count of connection is less then yesterday, but this connections never close too.
On my script finish I make sequelize.close(); but all connections is also open in mysql.

Please help me, how I can close all connections after script finish?
This is my configuration

and this is my script

Hello everyone. Yesterday I used "sequelize": "~3.24.1", "sequelize-cli": "~2.4.0"
I have script which started by cron each 5 minutes and load some statistics to database.
Each query open new mysql connection and never close it.
After I saw that bug I downloaded "sequelize": "~4.0.0-2", "sequelize-cli": "~2.5.1"
Now I have new bug.
Count of connection is less then yesterday, but this connections never close too.
On my script finish I make sequelize.close(); but all connections is also open in mysql.
Please help me, how I can close all connections after script finish?
This is my configuration

and this is my script
