Skip to content
This repository has been archived by the owner on Jan 4, 2018. It is now read-only.

hjr3/gearboot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple bootstrap for php gearman workers

This executes the boilerplate code normally required to get a gearman worker running. If running it on a tty it will also output some standard logging to assist in debugging.

How to install

pear channel-discover hradtke.github.com/pear
pear install hradtke/gearboot

This script makes currently makes the assumption that the filename matches the worker function name.

Examples

Starting a gearman worker in ./reverse.php

gearboot -f reverse

The output will look something like:

hradtke@dev01 ~/projects/gearboot !! gearboot -f reverse
Gearman worker running... press Ctrl-c to stop
Listening for function: reverse
Received job: H:dev01.hermanradtke.com:2
Finished job: H:dev01.hermanradtke.com:2
Received job: H:dev01.hermanradtke.com:3
Finished job: H:dev01.hermanradtke.com:3
Received job: H:dev01.hermanradtke.com:4
Finished job: H:dev01.hermanradtke.com:4
Received job: H:dev01.hermanradtke.com:5
Finished job: H:dev01.hermanradtke.com:5

About

Simple php gearman worker bootstrap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published