Socket
Socket
Sign inDemoInstall

squiss-jobs

Package Overview
Dependencies
45
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    squiss-jobs

SQS-backed job queue


Version published
Weekly downloads
45
decreased by-32.84%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

squiss-jobs npm version npm version

SQS-backed job queue.

Quick start guide

// instantiate your queue
const queue = require('squiss-jobs')({
  queueUrl: process.env.JOBS_URI,
  region:   process.env.AWS_REGION
})

// create a job handler
const foo = payload =>
  Promise.resolve(payload)
    .then(/* do something useful */)

// register the job
queue.handle('foo', foo)

// start processing jobs
queue.start()

// send a job onto the queue
queue.send('foo', { bar: 'baz' })

v1 docs

For v0 docs, see the original API.

FAQs

Last updated on 27 Aug 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc