Unable to use python multiprocessing on Apache2.4 Windows (Terminated p
From barudwale20@gmail.com@21:1/5 to All on Fri Apr 3 03:36:15 2020
I am using flask (with Python2.7.8) application hosted on Apache24 (v2.4.16 Win32) on Windows. I have used python multiprocessing library and Using Process to submit a process. A sample code is given as below:
START
file a.py
====================================
def task1(a,b,c):
# doing task here
END
START
file b.py
===========================================
from multiprocessing import Process
from a import task1
class B(object):
def __init__(self):
#initializaing variables
This code is working as expected when I am executing this with flask server. (creating python process and creating python child procecss of main process while calling Process(...).start())
But when I am executing the same code with Apache server by creating virtual host. The same code does create process but it does not execute and is already in Terminated state. (both parent and child process are httpd.exe processes).
I have tried to make changes in mpm config of Apache but it did not work or I could not configure it as expected. My current mpm config is as below.
Also I am unable to find any mpm module in modules folder in Apache. Any suggestions in order to make it work on Windows + Apache?
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)
Who's Online
Recent Visitors
Foxagg
Fri Mar 29 09:50:07 2024
from
The Void, Nowhere
via
SSH
Foxagg
Fri Mar 29 04:40:39 2024
from
The Void, Nowhere
via
SSH
Foxagg
Fri Mar 29 03:27:44 2024
from
The Void, Nowhere
via
SSH
Keyop
Fri Mar 29 03:27:35 2024
from
Huddersfield, West Yorkshire
via
SSH