Skip to content

Commit d32d5c0

Browse files
Test a fix for hanging of tests in CI
Signed-off-by: Albert van Houten <[email protected]>
1 parent 1cdeccd commit d32d5c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

library/src/otx/backend/native/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33

44
"""Native backend."""
55

6+
import multiprocessing
7+
68
from .lightning import accelerators, strategies
79

10+
if multiprocessing.get_start_method(allow_none=True) is None:
11+
multiprocessing.set_start_method("forkserver")
12+
813
__all__ = [
914
"accelerators",
1015
"strategies",

0 commit comments

Comments
 (0)