Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

resque-enqueue-activejob

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resque-enqueue-activejob

enqueue tasks to ActiveJob resque from node

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

resque-enqueue-activejob

Build status

Enqueues tasks to resque 1.x.x, specifically for the ActiveJob wrapper. Does not attempt to do anything else. redis should be something like node-redis that has sadd and rpush with a callback API.

Based on the original package for bare resque: resque-enqueue.

var enqueue = require('resque-enqueue-activejob');

enqueue(redis, 'normal', 'SendWelcome', 'bob@bob.com', function(err) {
  if(!err) {
    console.log("mail sent!");
  }
});

API

Enqueue

enqueue(redis, queue, className, args..., cb)
// or
enqueue.enqueue(redis, queue, className, args..., cb)

Enqueues a single task to resque.

Set Namespace

enqueue.setNamespace(namespace)

Sets the namespace, defaults to resque.

Keywords

FAQs

Package last updated on 27 Aug 2018

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc