Skip to content

abdollar/resque-bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resque-bash

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.

Contributing

Read the [Contributing][cb] wiki page first.

Once you've made your great commits:

  1. [Fork][1] Resque-bash
  2. Create a topic branch - git checkout -b my_branch
  3. Push to your branch - git push origin my_branch
  4. Create a Pull Request from your branch
  5. That's it!

About

Using Bash to provide pubhubsubbub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published