child_process.spawn() is unreliable on Promise.all() completion #23428
Labels
child_process
Issues and PRs related to the child_process subsystem.
promises
Issues and PRs related to ECMAScript promises.
I have a few promises that I fulfill with
Promise.all()
.When fulfilled, within the
finally()
block, I try to spawn a process and detach it.Occasionally the process is spawned, occasionally the process is not spawned. This fails approximately 33% of the time. No warning, exception, or error rises when spawn fails.
The process
myScript
always works if run manually from thebash
shell, outside ofnode
. The process does not get spawned reliably when attempted withinPromise.all()
withinnode
. Moving the function out of thePromise.all()
fulfillment completion stage seems to work consistently.The text was updated successfully, but these errors were encountered: