The LeezyPheanstalkBundle provides a number of command line utilities. Commands are available for the following tasks:
- Delete a job.
- Flush a tube.
- List available tubes.
- Pause a tube.
- Peek a tube to get the first ready/burried job and associated data.
- Peek a job and get associated data.
- Put a new job in a tube.
- Get statistics about beanstalkd server.
- Get statistics about a job.
- Get statistics about a tube.
- Get next ready job.
Note:
You must have correctly installed and configured the LeezyPheanstalkBundle before using
these commands.
$ php app/console leezy:pheanstalk:delete-job 42
$ php app/console leezy:pheanstalk:flush-tube your-tube
Note:
When you flush a tube, it will be removed from the beanstalkd server.
$ php app/console leezy:pheanstalk:list-tube
Note:
Tubes that are display contains at least one job.
$ php app/console leezy:pheanstalk:pause-tube your-tube
$ php app/console leezy:pheanstalk:peek-tube your-tube
$ php app/console leezy:pheanstalk:peek-tube -b your-tube
$ php app/console leezy:pheanstalk:peek 42
$ php app/console leezy:pheanstalk:put your-tube "Hello world - I am a job"
$ php app/console leezy:pheanstalk:stats
$ php app/console leezy:pheanstalk:stats-job 42
$ php app/console leezy:pheanstalk:stats-tube your-tube
$ php app/console leezy:pheanstalk:next-ready your-tube --details