Node Ace instance does not self exit inside docker container #5087
Answered
by
MukundaKatta
jakebknowles-simpro
asked this question in
Help
Answered by
MukundaKatta
Apr 21, 2026
Replies: 3 comments 4 replies
|
Hey this is a serious problem with your framework! |
0 replies
|
Hey, we would require a proper reproduction repo + the Dockerfile in order to look into the issue |
3 replies
|
Adonis's HTTP server keeps the event loop alive until you explicitly |
1 reply
Answer selected by
jakebknowles-simpro
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Adonis's HTTP server keeps the event loop alive until you explicitly
httpServer.close()— that's by design for long-running servers, butace test/ace db:seedscripts shouldprocess.exit(0)at the end. Usual culprit is an orphan DB connection (Lucid/knex pool) or a redis client that wasn't.close()'d. Addawait 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.