Skip to content

Conversation

@ekatralis
Copy link

@ekatralis ekatralis commented Jul 11, 2025

Added a thread monitor to multiprocexec, which runs for the first minutes of a simulation. This thread monitor catches exceptions raised by the individual processes and terminates all other processes if one fails. This ensures that the simulation doesn't hang when one process fails.

The thread monitor terminates itself automatically after 5 minutes of the simulation have passed to avoid any additional (albeit small) overhead could be introduced by this addition.

Fixes #16

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Attribute errors can lead to hanging processes

1 participant