Skip to content

ace codegen does not exit when Redis transport is resolved #45

Description

@rrmesquita

I'm not sure this is the right repository. The hang shows up after importing @adonisjs/transmit/services/main with the Redis transport, but it may belong in adonisjs/core (ace codegen / app lifecycle) instead.

What happens

node ace codegen prints:

[ success ] Codegen files generated

The process never exits (Ctrl+C to stop).

Reproduction

https://github.com/rrmesquita/adonis-transmit-codegen-hang/tree/repro/codegen-hang

git clone https://github.com/rrmesquita/adonis-transmit-codegen-hang.git
cd adonis-transmit-codegen-hang
git checkout repro/codegen-hang
cp .env.example .env   # set APP_KEY
npm i
# Redis on 127.0.0.1:6379
node ace codegen

What this app does

  • config/transmit.ts: Redis transport + pingInterval: '30s'
  • start/routes.ts imports @adonisjs/transmit/services/main and calls registerRoutes()

Control

Comment out that import and registerRoutes(). Codegen still prints success, then exits 0.

Package + config/transmit.ts without importing the service does not hang.

While hung, the process has two established TCP connections to 127.0.0.1:6379.

Environment

OS macOS 26.2 (Darwin 25.2.0, arm64)
Node v24.16.0
npm 12.0.2
@adonisjs/core 7.5.0
@adonisjs/transmit 3.0.1
@adonisjs/assembler 8.5.0
@boringnode/transmit 0.4.0
ioredis 5.11.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions