On 11/06/2013, at 11:13 AM, Josh Nathanson <[email protected]> wrote:

> Hi Graham,  thanks for responding so quickly.
> 
> On Mon, Jun 10, 2013 at 6:03 PM, Graham Dumpleton 
> <[email protected]> wrote:
> Where are you starting the thread from?
> 
> The thread is started in the main() function of the Pyramid app, like so:
> 
> def main(global_config, **settings):
>   # AMQPClient extends Thread
>   amqp_client = amqp_client = AMQPClient(settings['amqp.host'])
>   amqp_client.start()
> 

And you have added print statements inside of that main() function to see if it 
is executed?

When running under mod_wsgi, the typical main() function that a web application 
has to run a specific embedded WSGI server would not be run, especially since 
such main() functions are only run if __name__ == '__main__', which wouldn't be 
the case under mod_wsgi.

Can you provide more of the WSGI script file so I can see how when that main() 
is run?

Graham

-- 
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