On 26 Maj, 13:09, Cezary Statkiewicz <[email protected]> wrote: > 2009/5/26 Adam Dziendziel <[email protected]>:
> Paste ist not asynchronous, and keeping queue control in web > application is bad solution. Why? > You can try this: > - load a task to database > - web application will redirect to a checking location, where will be > current status of this task > - run a controller process which wolud check periodically for new tasks > - if there is a new task, controller will spawn a worker for it > - worker will do the task and update task record in database > - checking location will inform that task is done If I understand correctly, the difference is that your "controller process" is a separate application. However, I need access to the business model which is part of my Pylons application. This is a quite big piece of code which I would need to extract. Besides that, I have limited memory in my hosting plan and wouldn't like to add another long-running process. Why issuing a request from a cron job like "wget www.mysite.com/jobs/execute?token=somesecretstring", where the JobsController::execute() is picking up a job from the queue if there isn't any other job being executed and server is not under heavy load, is a bad solution? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
