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

@alienfast/sidekiq-client

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alienfast/sidekiq-client

Node sidekiq client.

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

@alienfast/sidekiq-client

CircleCI npm version

A Sidekiq client for node, intended to mimic the default behaviors of the Sidekiq client itself.

Use case

A Google Cloud Functions microservice that processes and queues data back for persistence via a ruby Sidekiq job.

Features

  • flow type checked standard Sidekiq job format
  • enqueue
  • your feature here

Installation

yarn add @alienfast/sidekiq-client redis

Usage

import SidekiqClient from '@alienfast/sidekiq-client'

// provide your own promisified redis client, or use the helper
const redisClient = SidekiqClient.redisCreateClient({ url: 'redis://foo:6379' })
const sidekiq = new SidekiqClient(redisClient)

// Enqueue a job to the 'default' queue with retry
sidekiq.enqueue({ 
  class: 'MyJob',
  args: ['foo']
})

// Enqueue a job to the 'critical' queue without retry
sidekiq.enqueue({ 
  class: 'MyJob',
  args: ['foo'],
  retry: false,
  queue: 'critical'  
})

// Schedule a job
sidekiq.enqueue({ 
  class: 'MyJob',
  args: ['foo']
}, new Date(2017, 10, 1))

Reporting Bugs or Feature Requests

  • Issues: please log issues in the issue tracker and submit a PR with a fix.
  • Feature Requests: please log an issue with the outline of your proposal for discussion, followed by the PR.

How you can help

  • Add mocha test with assertions!
  • Add any feature you like (with tests)

License

This is free software released under the MIT License. See LICENSE for details.

Keywords

FAQs

Package last updated on 28 Oct 2017

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