Announcing DJJob, a PHP port of delayed_job
seatgeek.com
Announcing DJJob, a PHP port of delayed_job
1–10 of 15 posts
Re: Announcing DJJob, a PHP port of delayed_job
#2Re: Announcing DJJob, a PHP port of delayed_job
#3Re: Announcing DJJob, a PHP port of delayed_job
#4Re: Announcing DJJob, a PHP port of delayed_job
#5for eg. an in-memory sqlite db would be ideal for this purpose (and a lot faster)
Re: Announcing DJJob, a PHP port of delayed_job
#6$worker = new DJWorker($options); $worker->start();
Actually: 1. block until all jobs stored in the database have been completed 2. simply run a single job and return 3. return immediately and run all the jobs on a separate thread in the background
I'm wondering where in a web application would be the best place to call $worker->start()?
Re: Announcing DJJob, a PHP port of delayed_job
#7Also the php PECL gearman driver ( http://pecl.php.net/package/gearman ) works well with the C-based gearmand server ( http://gearman.org/ ). We do some asynchronous image processing with PHP gearman workers, and it's been a very stable solution for us.
Re: Announcing DJJob, a PHP port of delayed_job
#8Also the php PECL gearman driver ( http://pecl.php.net/package/gearman ) works well with the C-based gearmand server ( http://gearman.org/ ). We do some asynchronous image processing with PHP gearman workers, and it's been a very stable solution for us.
Re: Announcing DJJob, a PHP port of delayed_job
#9In your example, does the call: $worker = new DJWorker($options); $worker->start(); Actually: 1. block until all jobs stored in the database have been completed 2. simply run a single job and return 3. return immediately and run all the jobs on a separate thread in the background I'm wondering where in a web application would be the best place to call $worker->start()?
Re: Announcing DJJob, a PHP port of delayed_job
#10I put it on GitHub because Jeremy Kemper really wanted to have a look at it. I thought the idea behind it was so naive that it would have occurred to everyone who ever needed a queue and had discarded the approach for some reason.
Little did I know that it was a fairly novel approach and that it would become one of my most popular libraries, right after ActiveMerchant and Liquid.
Thank you for the PHP port!