File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -68,14 +68,21 @@ n_workers = 1
68
68
parallel_backend = " loky" # or processes or threads
69
69
```
70
70
71
- ## Warning
71
+ ## Some implementation details
72
+
73
+ ### Parallelization and Debugging
72
74
73
75
It is not possible to combine parallelization with debugging. That is why ` --pdb ` or
74
76
` --trace ` deactivate parallelization.
75
77
76
78
If you parallelize the execution of your tasks using two or more workers, do not use
77
79
` breakpoint() ` or ` import pdb; pdb.set_trace() ` since both will cause exceptions.
78
80
81
+ ### Threads and warnings
82
+
83
+ Capturing warnings is not thread-safe. Therefore, warnings cannot be captured reliably
84
+ when tasks are parallelized with ` --parallel-backend threads ` .
85
+
79
86
## Changes
80
87
81
88
Consult the [ release notes] ( CHANGES.md ) to find out about what is new.
You can’t perform that action at this time.
0 commit comments