In a Django Project I want to use ProcessPoolExecutor but I can do that. Is there any solution? I call a function in view that has executor.
I use Django==4.1.7.
what should add to my function to run in django. The start() function works properly outside django. but doesn't work in django.
from a views.py in django app call a function that contain executor:
def start():
#'... some code here'
with concurrent.futures.ProcessPoolExecutor(max_workers=num_procs) as executor: