Unitech / Unitech/pm2

pm2 does not let yarn exit when its child process is killed

Open
#5,689 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
43.3k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

Please check this issue:
https://github.com/yarnpkg/berry/issues/5786

yarn behaves as spected when run on its own.
But when it is pm2 that runs it, yarn would not terminate when its child gets killed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no PM2 files, tests, or entry points; start by reading the linked Yarn issue and reproducing the behavior with Yarn running under PM2 while its child process is killed. Trace the process-exit handling and consider the work complete when Yarn terminates as it does when run directly, with coverage for this scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.