Skip to content

leahciMic/scraperjs-queue-bull

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A queue plugin for Scraper.js that is backed by Bull

Build Status Code Climate Test Coverage Issue Count Dependency Status

Methods

process(function)

The supplied function will be called for each item in the queue one at a time.

add(queueItem, opts)

Add's a queueItem.

count()

Returns a promise that will resolve to the remaining items in the queue.

close()

Close everything.

Environment variables

PRIORITY_QUEUE, if defined, a priority queue will be used REDIS_PORT, the port for Redis REDIS_HOST, the host for Redis

Todo

  • More documentation.
  • Tests.
  • Remove environment variables, and pass these things in from scraper.js.

Changelog

2.0.0 - Remove options, extract them from a queueItem instead 3.0.0 - Add options to process() 3.0.2 - Add removeOnComplete to save space in Redis

About

a bull backed queue plugin for scraper.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published