Kamisama.me

Tag: cli

Background jobs with php and resque: part 7, Manage workers with Fresque

Fresque is a command line tool to manage your php-resque workers Fresque removes all the hassles of manipulating process, pipe, daemon and other cli-guru related commands when managing php resque workers. Instead of starting a worker with this command: QUEUE=notification php resque.php You use: fresque start –queue notification You begin to see its real usefulness […]

Background jobs with php and resque: part 6, integration into CakePHP

Using background jobs inside a php framework with php-resque is a little bit different, as the framework is imposing its own convention. Let’s see how to create background jobs in CakePHP, with the CakeResque plugin. CakeResque is a CakePHP plugin for creating background jobs that can be processed offline later. CakeResque is more than a […]

Background jobs with php and resque: part 4, managing worker

This guide is intended for Linux and OS X users. Windows users will have to adapt some code to make them works. Understanding the internal works Technically, a worker is a PHP process that will run indefinitely, always monitoring for new jobs to execute. Pseudo-code of a worker’s internal: while (true) { $jobs = pullData(); […]

CakeResque 1.0

Just released the version 1.0.0 of Cake-Resque a few days ago. A big update that comes with a lot of bug fixes and new functions, thanks to feedback on Fresque, the sister version of Cake-Resque not tied to a framework. Some of the new features : Composer is used to manage all dependencies Php-resque-Ex is […]