Skip to content

Commit 2627572

Browse files
committed
Update readme.
1 parent 8cd6f67 commit 2627572

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,21 @@ n_workers = 1
6868
parallel_backend = "loky" # or processes or threads
6969
```
7070

71-
## Warning
71+
## Some implementation details
72+
73+
### Parallelization and Debugging
7274

7375
It is not possible to combine parallelization with debugging. That is why `--pdb` or
7476
`--trace` deactivate parallelization.
7577

7678
If you parallelize the execution of your tasks using two or more workers, do not use
7779
`breakpoint()` or `import pdb; pdb.set_trace()` since both will cause exceptions.
7880

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+
7986
## Changes
8087

8188
Consult the [release notes](CHANGES.md) to find out about what is new.

0 commit comments

Comments
 (0)