Node Ace instance does not self exit inside docker container #5087
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
Hey this is a serious problem with your framework! |
Beta Was this translation helpful? Give feedback.
-
|
Hey, we would require a proper reproduction repo + the Dockerfile in order to look into the issue |
Beta Was this translation helpful? Give feedback.
-
|
Adonis's HTTP server keeps the event loop alive until you explicitly |
Beta Was this translation helpful? Give feedback.

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.