0.0
No commit activity in last 3 years
No release in over 3 years
Generates a UUID for Resque jobs as they are enqueued
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
= 1.13.0
 Project Readme

resque-uuid

ResqueUUID will assign random UUIDs to your Resque jobs so that they can be uniquely identified.

Usage

require 'resque'
require 'resque-uuid'

Resque::Plugins::ResqueUUID.enable!

UUIDs can be returned via:

  • Resque::Job#uuid
  • YourJobPayloadClass.uuid, if your payload class responds to .uuid= and .uuid

Additionally, your payload class can define an after_uuid_generated callback, which will be called with the newly-generated uuid and job args after the job is enqueued

class MyJobClass

   def self.after_uuid_generated(uuid, *args)
    # do some record keeping or something
   end

end