Socket
Socket
Sign inDemoInstall

solid-queue

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    solid-queue

Solid CI job queue


Version published
Weekly downloads
5
decreased by-16.67%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Solid queue

Redis-backed durable job queue for Solid CI.

API

  • Queue()
  • .clear()
  • .sub()
  • .push()
  • .pop()
  • .abort()
  • .complete()
  • .stats()

Queue()

Initialize a new Queue.

Queue.clear(fn:Function)

Clear job queue data.

Queue.sub([fn]:Function)

Subscribe to events.

 var queue = new Queue;
 queue.sub();
 queue.on('push', function(job){})
 queue.on('complete', function(job){})
Events
  • push (job)
  • abort (job)
  • fail (job, err)
  • complete (job)
  • processing (job)

Queue.push(job:String, fn:Function)

Push job and invoke fn(err).

Queue.pop(fn:Function)

Perform a blocking pop to fetch a job and invoke fn(err, job).

Queue.fail(job:String, error:Error, [fn]:Function)

Abort job with the given error object.

Queue.abort(job:String, [fn]:Function)

Abort job.

Queue.complete(job:String, [fn]:Function)

Complete job.

Queue.stats(fn:Function)

Get queue statistics and invoke fn(err, stats).

  • total number of jobs total
  • count number of pending jobs
  • processing number of processing jobs

License

MIT

FAQs

Last updated on 29 Nov 2013

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