Hello,

I have a Python/Pyramid app which, upon startup, creates a python 
sub-thread which is blocking.  The sub-thread is listening to a RabbitMQ 
server for amqp messages.

This works great when I use pserve (the Pyramid way of starting the app) to 
fire up the app, however, when I serve the app via apache/mod_wsgi, it 
seems the blocking sub-thread never starts up.  I don't see any connections 
to the RabbitMQ server.  I've confirmed all the configuration for 
connecting to RabbitMQ is correct, as everything works as expected when 
using pserve to start the app.

It should be noted I'm using prefork Apache, although from what I read in 
the mod_wsgi docs, it doesn't seem like that would preclude me from running 
a sub-thread.

My apache config looks like this:

WSGIDaemonProcess my_process processes=4 threads=4 display-name=my_app 
python-path=/my/big/ole/pythonpath
WSGIProcessGroup my_process
WSGIScriptAlias /myapp /my/path/to/main.wsgi

Any ideas?  Is this something that cannot be done within the context of 
apache/mod_wsgi?

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to