Skip to content

Queue Constructor

Grant Carthew edited this page Sep 14, 2016 · 7 revisions

Description

The primary JavaScript object you use with rethinkdb-job-queue is the Queue object. The Queue object connects to and if they don't exist, creates the database and table to store the queue jobs.

To create a Queue object you can supply options to define the connection to the database and the operation of the queue. These options are optional however you will typically want to change them.

The constructor for the Queue object takes two arguments being the Connection Options object and the Queue Options object. The Connection and Queue options are not required and if not supplied the default values will apply.

See the Connection Options and Queue Options document for more detail about what the options are. This document is to show you how to create the Queue object with these options.

Use Default Options

To use all the default options when creating the Queue object use the following instantiation code.

const q = new Queue()

Main

How It Works

Contributing

API

Queue Methods

Queue Properties

Queue Events

Job Methods

Job Properties

Documentation

Clone this wiki locally