Benchmark your Resque jobs. Monitor how long they take from queuing to completion.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install resque-benchmark
class MyJob extend Resque::Plugins::Benchmark def perform(id) # do something with id end end
This will diff the enqueue/finish times and store them in a Redis set named
benchmark:aggregate:MyJob. TODO: provide some kind of interface to this data.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request