Socket
Book a DemoInstallSign in
Socket

resque-uuid

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resque-uuid

0.1.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 19 Jun 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.