Skip to content

lib: Know when a process ended due to the child_process.spawn() timeout option #51561#51608

Open
FranciscoMateusVG wants to merge 3 commits intonodejs:mainfrom
FranciscoMateusVG:fr_51561
Open

lib: Know when a process ended due to the child_process.spawn() timeout option #51561#51608
FranciscoMateusVG wants to merge 3 commits intonodejs:mainfrom
FranciscoMateusVG:fr_51561

Conversation

@FranciscoMateusVG
Copy link

Feature: #51561

Having a way to know whether the process ended due to the timeout option by checking childProcess.timedOut = true

@nodejs-github-bot nodejs-github-bot added child_process Issues and PRs related to the child_process subsystem. needs-ci PRs that need a full CI run. labels Jan 30, 2024
@aduh95 aduh95 added the semver-minor PRs that contain new features and should be released in the next minor version. label May 12, 2024
@aduh95
Copy link
Contributor

aduh95 commented May 12, 2024

/cc @nodejs/child_process

@sindresorhus
Copy link

Can someone review?

@FranciscoMateusVG
Copy link
Author

Wondering @RafaelGSS if there is someone i can call out to check this. Its being opened a while and there are some people still interested on this merge looking at this thread #51561 (comment)

Copy link
Member

@RafaelGSS RafaelGSS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not on my computer right now - I can check this PR later. But, if you are certain we should have a new property on child, we must document it.

Document the timedOut boolean property on ChildProcess that indicates
whether the child process was killed due to a timeout option.

Refs: nodejs#51561
@FranciscoMateusVG
Copy link
Author

@RafaelGSS done!

Copy link
Member

@RafaelGSS RafaelGSS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI is red

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

Labels

child_process Issues and PRs related to the child_process subsystem. needs-ci PRs that need a full CI run. semver-minor PRs that contain new features and should be released in the next minor version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants