There was recently a discussion on the CakePHP mailing list on how to get started using Gearman with CakePHP, instead of going back and forth over mails a blog post is more illustrative. The following is the code for using Gearman in CakePHP, The core php example given at http://gearman.org/index.php?id=getting_started has been ported. Gearman worker as a shell (app/Console/Command/TestWorkerShell