[symfony-users] Re: How to handle async. background-tasks initiated by the frontend..

2009-07-08 Thread James Cauwelier
The solution of Stefan is perfect. If you were executing through an exec() call, then a simple queue will fit your needs just fine. If no need to execute a task, then just add it to the queue, which is basically a list of tasks to be executed: 1. clear cache task 2. custom db cleaning task 3. c

[symfony-users] Re: How to handle async. background-tasks initiated by the frontend..

2009-07-06 Thread Bert-Jan
I'm using Gearman for moving stuff to the background. Absolutely wonderful stuff and very easy to deploy. Stefan Koopmanschap schreef: > Hi Christian, > The best option for this would be some kind of jobqueue system. There > are several options for this, which might or might not fit your soluti

[symfony-users] Re: How to handle async. background-tasks initiated by the frontend..

2009-06-25 Thread Nickolas Daskalou
Do you have permissions on the machine to create sockets? If so, and you want an all PHP solution, you could create an extremely small PHP script that runs as a daemon (the "server"), and create a socket with it, from which this script will continuously wait for (any number of) clients to connect.

[symfony-users] Re: How to handle async. background-tasks initiated by the frontend..

2009-06-25 Thread Frank Stelzer
Hi Chris, The sfJobQueuePlugin will work for some basic actions, like fetching rss feeds or sending emails. I tried to ported the plugin to an 1.2 version, but i had to stop my work on it then and could not implement everything i wanted. But it's pretty easy to create your own "rss feed" ha

[symfony-users] Re: How to handle async. background-tasks initiated by the frontend..

2009-06-24 Thread Stefan Koopmanschap
Hi Christian, The best option for this would be some kind of jobqueue system. There are several options for this, which might or might not fit your solution: There is an (old) plugin that I personally have no experience with but might fit your needs which is the sfJobQueuePlugin[1]. The plugin desc