Sha256: 84db101cf37764bcde47d8e1dbe7deaeae70874db2bb47522a77f2c6694dc0b9
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 KB
Contents
# Resque History [![alt build status][1]][2] [1]: https://secure.travis-ci.org/ilyakatz/resque-history.png?branch=master [2]: http://travis-ci.org/#!/ilyakatz/resque-history A [Resque][rq] plugin. Requires Resque resque-history adds functionality record recently history of job executions Usage / Examples ---------------- ### Single Job Instance ```ruby require 'resque-history' class UpdateNetworkGraph extend Resque::Plugins::History @queue = :network_graph def self.perform(some_id) do_stuff(some_id) end end ``` ### Job History By default resque-history stores 500 history items on redis, but if you want to store less items, assign @max_history in the job class. ```ruby require 'resque-history' class UpdateNetworkGraph extend Resque::Plugins::History @queue = :network_graph @max_history = 50 # max number of histories to be kept def self.perform(some_id) do_stuff(some_id) end end ``` Resque-Web integration ---------------------- You have to load ResqueHistory to enable the History tab. ```ruby require 'resque-history/server' ``` Install ======= Add to your Gemfile $ gem "resque-history" Add to routes.rb file require 'resque-history/server' [rq]: http://github.com/defunkt/resque
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
resque-history-1.9.0 | README.md |