Skip to content

State Document

Grant Carthew edited this page Oct 6, 2016 · 4 revisions

Description

To enable passing of messages to Queue objects in a distributed processing environment, rethinkdb-job-queue uses a document in the queue table called the State Document.

Here is an example of the State Document:

{
  dateChange: Thu Oct 06 2016 04:18:58 GMT+00:00,
  id: '86f6ff5b-0c4e-46ad-9a5f-e90eb19c9b00',
  queueId: 'WebDev::rjqJobQueueTestJobs:9302:3684e084-71a8-4ebc-8954-fb42a5e73ee9',
  state: 'reviewed'
}

To make it easy to use the State Document the id value is fixed and will never change. The State Document will always have an id of 86f6ff5b-0c4e-46ad-9a5f-e90eb19c9b00.

Main

How It Works

Contributing

API

Queue Methods

Queue Properties

Queue Events

Job Methods

Job Properties

Documentation

Clone this wiki locally