Skip to content

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

Open

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

Activity

  1. added
    status: draftThe status of the hub task
    and removed on Nov 16, 2026
  2. thetutlage commented on Nov 16, 2026

    @thetutlage
    Member

    Thanks for the reproduction! Fixed in #46, and it ships in the next release of @adonisjs/transmit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: draftThe status of the hub task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions