[pylons-devel] Newbie question: How to run task after the pyramid web app is up?

2014-01-28 Thread Jeryn Mathew
Hello all, I have a question regarding Pyramid application. In my use case, I create the Pyramid app using .make_wsgi_app() api, and is then handed to gunicorn to start the server. My problem is, I want to run a task/method once, AFTER the webserver is up. (ie, when gunicorn/waitress/etc had st

Re: [pylons-devel] Newbie question: How to run task after the pyramid web app is up?

2014-01-28 Thread Gael Pasgrimaud
On Tue, Jan 28, 2014 at 04:25:14AM -0800, Jeryn Mathew wrote: > Hello all, > > I have a question regarding Pyramid application. > > In my use case, I create the Pyramid app using .make_wsgi_app() api, and is > then handed to gunicorn to start the server. > My problem is, I want to run a task/met

[pylons-devel] Re: Newbie question: How to run task after the pyramid web app is up?

2014-01-28 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/28/2014 07:25 AM, Jeryn Mathew wrote: > I have a question regarding Pyramid application. > > In my use case, I create the Pyramid app using .make_wsgi_app() api, > and is then handed to gunicorn to start the server. My problem is, I > want to r

Re: [pylons-devel] Newbie question: How to run task after the pyramid web app is up?

2014-01-28 Thread Daniel Holth
Here are the available events in Pyramid. http://docs.pylonsproject.org/projects/pyramid/en/latest/api/events.html#pyramid.events.ApplicationCreated On Tue, Jan 28, 2014 at 1:30 PM, Gael Pasgrimaud wrote: > On Tue, Jan 28, 2014 at 04:25:14AM -0800, Jeryn Mathew wrote: >> Hello all, >> >> I have

Re: [pylons-devel] Newbie question: How to run task after the pyramid web app is up?

2014-01-28 Thread Jeryn Mathew
Many thanks Gael... this is what I was looking for... On Wednesday, January 29, 2014 12:00:52 AM UTC+5:30, Gael Pasgrimaud wrote: > > On Tue, Jan 28, 2014 at 04:25:14AM -0800, Jeryn Mathew wrote: > > Hello all, > > > > I have a question regarding Pyramid application. > > > > In my use case, I