Skip to content
Discussion options

You must be logged in to vote

Adonis's HTTP server keeps the event loop alive until you explicitly httpServer.close() — that's by design for long-running servers, but ace test / ace db:seed scripts should process.exit(0) at the end. Usual culprit is an orphan DB connection (Lucid/knex pool) or a redis client that wasn't .close()'d. Add await db.manager.closeAll() (or equivalent for your provider) at the end of the ace handler, and the instance will exit cleanly — especially useful in Docker / CI where stdin isn't a TTY.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@jakebknowles-simpro
Comment options

@jakeb-k
Comment options

@thetutlage
Comment options

Comment options

You must be logged in to vote
1 reply
@jakebknowles-simpro
Comment options

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