Problem:
There's an timeout=10000 (10s) option passed to child_process.spawn with the original intention to prevent the child process from hanging during the start phase. But this option actually meant the max lifespan of the child process; meaning the child process will always get terminated after running for 10 seconds.
The timeout option was introduced in node15.13.0, thus it had no effect in node10 which is the default for RHEL8.
Solution:
Remove the timeout option as it's not what we needed.
Problem: There's an
timeout=10000
(10s) option passed tochild_process.spawn
with the original intention to prevent the child process from hanging during the start phase. But this option actually meant the max lifespan of the child process; meaning the child process will always get terminated after running for 10 seconds.The
timeout
option was introduced innode15.13.0
, thus it had no effect innode10
which is the default forRHEL8
.Solution: Remove the
timeout
option as it's not what we needed.