Skip to content

Job Name

Grant Carthew edited this page Feb 10, 2017 · 4 revisions

Description

Prior to v2.3.0 of rethinkdb-job-queue there was only one way to query or find jobs in the queue base on a job property. Using Queue.findJob is slow because it does not utilize an index in the database.

By using the Job.name property you can apply a label to your jobs which are backed by an index. This improves the retrieval speed of named jobs and reduces the load on the RethinkDB database.

Warning: The name property of queue jobs is not guaranteed to be unique. Use the automatically generated Job.id and Queue.getJob for unique job access.

You can use the Job.name property for a number of purposes. Here are just a few ideas:

Related Documents

Main

How It Works

Contributing

API

Queue Methods

Queue Properties

Queue Events

Job Methods

Job Properties

Documentation

Clone this wiki locally