Skip to content

Commit

Permalink
changing process start methos
Browse files Browse the repository at this point in the history
  • Loading branch information
erezz-mov-ai committed Aug 10, 2023
1 parent ead399a commit 648bf14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import os
from concurrent.futures import ProcessPoolExecutor

import multiprocessing
from aiohttp import web

from dal.data.shared.vault import JWT_SECRET_KEY
Expand All @@ -29,6 +29,8 @@
HTTP_HOST = os.getenv("HTTP_HOST", "0.0.0.0")
HTTP_PORT = int(os.getenv("HTTP_PORT", "5004"))

multiprocessing.set_start_method("spawn")

async def log_streamer(app: web.Application):
"""
This function is made for context handling by aiohttp.
Expand Down

0 comments on commit 648bf14

Please sign in to comment.