trigger.dev icon indicating copy to clipboard operation
trigger.dev copied to clipboard

bug: NestJS workers are not cleaned-up

Open erikash opened this issue 1 year ago • 2 comments

Provide environment information

System: OS: macOS 14.4.1 CPU: (10) arm64 Apple M1 Pro Memory: 192.55 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 18.14.1 - ~/.nvm/versions/node/v18.14.1/bin/node Yarn: 1.22.22 - ~/.nvm/versions/node/v18.14.1/bin/yarn npm: 9.3.1 - ~/.nvm/versions/node/v18.14.1/bin/npm pnpm: 8.6.3 - ~/.nvm/versions/node/v18.14.1/bin/pnpm

Describe the bug

The processes are not terminating leading the system to out-of-memory

Reproduction repo

https://github.com/erikash/trigger-nestjs

To reproduce

Trigger the synchronizeAllEmployees job. Watch the memory and trigger processes count only go up and your system running out of memory

Additional information

trigger

erikash avatar Apr 17 '24 07:04 erikash

I haven't been able to recreate this issue, how are you running the dev command?

ericallam avatar Apr 17 '24 09:04 ericallam

I haven't been able to recreate this issue, how are you running the dev command?

npx trigger.dev@beta dev

erikash avatar Apr 17 '24 12:04 erikash