Skip to content

Commit

Permalink
fix multiprocessing ml bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sansyrox committed Apr 22, 2024
1 parent 107794c commit 0e98815
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions robyn/processpool.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import asyncio
import webbrowser
from multiprocess import Process
import multiprocessing as mp
import signal
import sys
from typing import Dict, List
Expand Down Expand Up @@ -77,6 +78,8 @@ def init_processpool(
response_headers: Headers,
) -> List[Process]:
process_pool = []
ctx = mp.get_context('spawn')

if sys.platform.startswith("win32"):
spawn_process(
directories,
Expand Down

0 comments on commit 0e98815

Please sign in to comment.