Commit 5b186a6
fix: cover join_or_terminate states
* [TEST] Add comprehensive tests for join_or_terminate in ParallelWorkerPool
This commit adds `test_join_or_terminate_mixed_states` and `test_join_or_terminate_empty`
to `tests/test_parallel_processor.py`. These tests verify the emergency shutdown
mechanism in scenarios with multiple processes in different states (hanging, clean exit)
and when the process list is empty.
Co-authored-by: n24q02m <135627235+n24q02m@users.noreply.github.com>
* [TEST] Add comprehensive tests for join_or_terminate in ParallelWorkerPool
This commit adds `test_join_or_terminate_mixed_states` and `test_join_or_terminate_empty`
to `tests/test_parallel_processor.py`. These tests verify the emergency shutdown
mechanism in scenarios with multiple processes in different states (hanging, clean exit)
and when the process list is empty.
Also fixed a formatting issue in `tests/test_parallel_processor.py` flagged by CI.
Co-authored-by: n24q02m <135627235+n24q02m@users.noreply.github.com>
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent 0a07dad commit 5b186a6
1 file changed
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
0 commit comments