Skip to content

Database connection doesn't close after command #1407

Answered by thetutlage
backspacerhino asked this question in Help
Discussion options

You must be logged in to vote

Expected. You have to close the database connection manually. AdonisJS cannot make the decision whether to forcefully close the connection or not. What if your command intentionally is a long running process?

await this.db.manager.closeAll()

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@backspacerhino
Comment options

@thetutlage
Comment options

Answer selected by backspacerhino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants