No commit activity in last 3 years
No release in over 3 years
Resque plugin to log info whenever a job is enqueued. Example: Enqueued SortUserJob to "low": user_id=1, options={"force"=>true}
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 1.25
 Project Readme

Resque::Plugins::EnqueueLogging

A lightweight Resque plugin to log whenever a job is enqueued. Super handy for debugging! 😄

Gem Version Code Climate

Installation

Add to your Gemfile:

gem "resque-enqueue-logging"

Usage

Just extend Resque::Plugins::EnqueueLogging and all the hooks will be set up.

class SortUserJob
  extend Resque::Plugins::EnqueueLogging

  @queue = :low

  def perform(user_id, options={})
    # do hard work
  end
end

Resque.enqueue SortUserJob, 1, :force => true

In the logfile:

Enqueued SortUserJob to "low": user_id=1, options={"force"=>true}

TODO

  • Add tests
  • Add CI configuration (and test coverage badge)