resque-history 0 travis-ci ruby Rubygems

Show history of recently executed resque jobs

3 years after MIT

Resque History

alt build status Dependency Status Code Climate Gem Version

A Resque plugin. Requires Resque

resque-history adds functionality record recently history of job executions

Usage / Examples

Single Job Instance

    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.

    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

3rd Party classes

If you want to use resque history with 3rd party resque jobs, extended the classes that you want to be recorded in history

[
    CarrierWave::Workers::ProcessAsset,
    CarrierWave::Workers::StoreAsset,
    ActionMailer::DeliveryMethods
].each do |klazz|
  klazz.class_eval do
    extend Resque::Plugins::History
  end
end

Resque-Web integration

'History' tab in resque web GUI

Resque History GUI

Install

Add to your Gemfile

$ gem "resque-history"

Add to routes.rb file

require 'resque-history/server'

Related Repositories

resque

resque

Resque is a Redis-backed Ruby library for creating background jobs, placing them ...

resque-mongo

resque-mongo

resque-mongo is a mongoDB fork of resque library for creating background jobs, p ...

resque-mongo

resque-mongo

resque-mongo is a mongoDB fork of resque library for creating background jobs, p ...

resque-mongo

resque-mongo

resque-mongo is a mongoDB fork of resque library for creating background jobs, p ...

resque-telework

resque-telework

A Resque plugin aimed at workers management on remote hosts ...


Top Contributors

ilyakatz kevintom ptoomey3 fred tobiashm mcfiredrill

Releases

-   v1.12.0 zip tar
-   v1.9.5 zip tar
-   v1.9.4 zip tar
-   v1.9.1 zip tar
-   v1.5.0 zip tar
-   v1.4.0 zip tar
-   v1.1.0 zip tar
-   v0.1.0 zip tar