solid-queue

Solid CI job queue

Solid queue

Redis-backed durable job queue for Solid CI.

Initialize a new Queue.

Clear job queue data.

Subscribe to events.

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

Push job and invoke fn(err).

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

Abort job with the given error object.

Abort job.

Complete job.

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