Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Force all nodes to quit when exception happens in one program #22

Open
wcarvalho opened this issue Mar 30, 2022 · 3 comments
Open

Force all nodes to quit when exception happens in one program #22

wcarvalho opened this issue Mar 30, 2022 · 3 comments

Comments

@wcarvalho
Copy link

Hello, is there a way to get all nodes to stop when one node gets an exception?

@qstanczyk
Copy link
Contributor

Depending on the runtime you use - for "multi-threaded" execution entire program terminates due to exception.
When you use multi-process with outputting to files you can call wait() on the result of lp.launch() call.

@wcarvalho
Copy link
Author

Can you explain what "outputting to files" does? Also, somewhat unrelated, can you give advice on scheduling programs to launch one after the other? E.g., when one fails/exits, another program starts

@qstanczyk
Copy link
Contributor

outputting to files writes output of each node to a log file. wait() can be used in any multi-process experiment and it can be used to schedule mulitple programs to execute one after the other.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants