Skip to content

Event.log

Grant Carthew edited this page Nov 19, 2016 · 3 revisions

Event Details

Subject: Job

Signature: (queueId, jobId)

Returns: queueId String

  • The id of the Queue object that added the job log entry.

Returns: jobId String

  • The Job.id for the job that has had a log entry added.

Example:

const Queue = require('rethinkdb-job-queue')
const q = new Queue()

q.on('log', (queueId, jobId) => {
  console.log('Job log entry added: ' + jobId)
})

Description

The log event is raised whenever a job has a custom log entry added to the job. It is not raised on the standard queue logging process. For example; if a job fails, a log entry is added to the job with details about the failure. This will not raise the log event. Only custom log entries will raise the log event.

See the Job.addLog method and the changeFeed queue option for more detail.

Main

How It Works

Contributing

API

Queue Methods

Queue Properties

Queue Events

Job Methods

Job Properties

Documentation

Clone this wiki locally