LDAR-Sim / LDAR_Sim

MIT License
11 stars 22 forks source link

[FEAT] Set parent process to stop creating any new child process if error occurs #287

Open SEAJang opened 3 months ago

SEAJang commented 3 months ago

Requested Feature/Enhancement

Prevent any new processes from being created if one of the child process (a single program run) encounters a fatal error while simulating.

Need for feature/Enhancement

This is needed because there are cases where one of the parameterized programs cause an error, however, the simulator will continue to run because the exit called is within the child process

Problem to solve

No response

Implementation Ideas

Create a lock for a flag that only the parent(main) run script knows about, and the child programs all inherit, and can only set to true. When the child processes re-join the parent, do a check to ensure the flag is set to false, if set to true, force exist the simulator and don't create new processes.

Additional context

No response