I am not using celery;

The more I think about it I think celery would be easier to work with than what I had asked;

Celery is a process that runs in the background its uses AMPQ so that service is running; so if there were a client you could easily integrate the two;

what I am asking would be a bit different; because I want when the application starts to start a background process;

which you can do as Anthony pointed out in the docs; but the next question is that if you use uwsgi; then you would need some way to perform that same startup scenario in wsgi.

Thanks.


On 7/11/11 11:20 AM, Massimo Di Pierro wrote:
If anybody is using celery with web2py and have example to share it
will be useful to many of us.

On Jul 11, 10:13 am, Jonathan Lundell<[email protected]>  wrote:
On Jul 11, 2011, at 8:08 AM, David J. wrote:

Yes; I am waiting patiently;
:)
But till then...
 From the comments I've seen here, you can go ahead and play with Celery on 
your own, without integration. I have no experience with it myself.









Thanks.
On 7/11/11 11:05 AM, Jonathan Lundell wrote:
On Jul 11, 2011, at 7:54 AM, Anthony wrote:
I'm not sure -- I think you just have to start the background process 
separately. You might consider having it start via cron @reboot. Maybe others 
have suggestions.
Massimo is promising Celery integration by mid-August. Would that work?
On Monday, July 11, 2011 10:38:52 AM UTC-4, David J wrote:
Anthony;
We are getting closer; now the question is how can I run this if I am running 
wsgi?
This is exactly what needs to get done; so can I pass to my wsgi handler to do 
this as well?
Thanks.
On 7/11/11 10:26 AM, Anthony wrote:
OK, have you seen 
this:http://web2py.com/book/default/chapter/04#Background-Processes-and-Ta...
On Monday, July 11, 2011 10:19:59 AM UTC-4, David J wrote:
Anthony;
Thanks; I wanted my object to be created on application startup;
I know that I can put objects in my model and they are available; but I wanted 
something like application scope that has a life longer than the request;
What I am trying to accomplish is an event queue type system.
so when the application starts and event queue starts and as I process 
requests; I can add events to the queue and they can run in the back ground;
I thought if I started my app in models like
queue = EventQueue()
queue.start()
seems like once the request lifecycle completes the queue is no longer running 
as I am guessing it would probably hold up the request from finishing;
so I am looking for an alternative place to start the queue say when the 
application starts and store that somewhere globally.
Thanks.
On 7/11/11 10:08 AM, Anthony wrote:
All the model files in the root /models folder are run on every request to the 
application, so any object defined in one of those files will be available 
application wide. Is that what you're looking for?
Note, as of version 1.96.1, there are also conditional model files that execute 
only when a particular controller and/or function is requested. For example, 
model files in the /models/controller1 folder will only execute when the 
incoming request is for 'controller1', and model files in the 
/models/controller1/func1 folder will only execute when the incoming request is 
for 'controller1/func1'.
Anthony
On Monday, July 11, 2011 9:59:06 AM UTC-4, David J wrote:
Is there place to specify a global object that runs when the application
runs?
Like application scope?
Thanks.

Reply via email to