Using Bash to provide pubhubsubbub - works across multiple machines using redis commands and is designed to be compatible with resque
Create background jobs and workers using a bash script.
Drop this into your rails project or use this repo as is.
Resque-bash supports the standard Resque web frontend which tells you what various bash workers are doing.
To create a job (defaults to a queue called critical and submits a class called fetch with a value of the current time)
$ ./script/resque-bash.sh -j
To run the bash script as a worker and process jobs from a queue (defaults to the queue called critical and echos the args)
$ ./script/resque-bash -w
To start the resque front end
$ resque-web
To stop the resque front end
$ resque-web --kill
Why did I make this and should this exist at all? Rails can be slow to start and using bash to do quick ops-esque tasks is handy.
Note that this is calling redis-cli multiple times so it's starting and tearing down sockets constantly
Your mileage will be bad with this tool, use it wisely.
Read the [Contributing][cb] wiki page first.
Once you've made your great commits:
- [Fork][1] Resque-bash
- Create a topic branch -
git checkout -b my_branch
- Push to your branch -
git push origin my_branch
- Create a Pull Request from your branch
- That's it!