Commit 5b1bbc2
authored
fix: set NUM_WORKERS=0 for non-fork multiprocessing start methods (#4784)
fix #4686
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Bug Fixes**
- Improved compatibility by automatically adjusting worker settings when
the multiprocessing start method is not supported, preventing potential
issues with data loading.
- Added a warning message to inform users when worker settings are
changed due to multiprocessing constraints.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 2731c5d commit 5b1bbc2
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
25 | 36 | | |
26 | 37 | | |
27 | 38 | | |
| |||
0 commit comments