Crash or Stop #817
Replies: 4 comments 5 replies
-
Do you parameterize per device or do you run all tests on all workers, where each worker is configured different Also please note each worker is a own process |
Beta Was this translation helpful? Give feedback.
-
@RonnyPfannschmidt at the moment we spawn as many workers as devices available. Then the workers reach out to a "device controller" and ask for a idle device on each test run. Ideally the worker would be hard coded with the device id, but we can't go back at this point. |
Beta Was this translation helpful? Give feedback.
-
@RonnyPfannschmidt I moved the repo over to assigning a thread a device via a global variable map; however, if a test fails. The thread continues. I have specified |
Beta Was this translation helpful? Give feedback.
-
So I figured out how to crash the thread intentionally; however, if a thread dies, the entire process dies. I have max-worker-resart set to 0 (because I don't want the thread to restart if a device is gone), however, I want the remaining threads to continue on if a thread dies. Is this a possibility?
|
Beta Was this translation helpful? Give feedback.
-
Is it possible to stop or crash a thread on purpose? For instance, we have 5 devices on the start of a test run, one thread per device. If a device crashes we have a scenario where we have 5 threads and 4 devices. The thread attempts to get another device but they are all already tied to other threads. We are sleeping the thread, but that impacts all of the other threads.
I noticed there is an option for
--max-worker-restart 0
we just need to know how to force a crash at that point, but ideally a way to elegantly stop a thread would be much nicer.Beta Was this translation helpful? Give feedback.
All reactions