Hi @cnavarreteliz, these changes are based on work I did for the OEC and it seems like Spawn works better than Spawnsync. Also, unfortunately you cannot set a timeout with either Spawn or Spawnsync (as part of the childprocess api) so you have to use a JS settimeout.
The other important thing is to set {detached: true} as a configuration option to each spawned processes. This is necessary when a script that is called opens many different processes which all need to be killed when the timeout is reached.
Take a look at the code changes and see what you think.
Hi @cnavarreteliz, these changes are based on work I did for the OEC and it seems like Spawn works better than Spawnsync. Also, unfortunately you cannot set a timeout with either Spawn or Spawnsync (as part of the childprocess api) so you have to use a JS settimeout.
The other important thing is to set
{detached: true}
as a configuration option to each spawned processes. This is necessary when a script that is called opens many different processes which all need to be killed when the timeout is reached.Take a look at the code changes and see what you think.