-
Notifications
You must be signed in to change notification settings - Fork 16
Debugging
If you like this package and want to contribute you will want to know about the debug logging feature that is built in.
Rather than rely on console.log
message throughout rethinkdb-job-queue
, it has the versatile debug module installed.
To improve the logging output I have customized the logging with the logger.js file.
Throughout rethinkdb-job-queue
there are logger(message)
statements which write to the console a detailed set of information. You can use the logging output to better understand how the package works, or to squash bugs.
If you haven't used it before, the debug module only produces console output if you set the DEBUG
environment variable.
I don't recommend producing a full debug output as the result will be extreme, however if you wish to, you would do it in the following way.
> DEBUG=* npm test
A better option is to filter the debug output by using the wildcard features of debug.
Here is an example just showing the debug output for the queue-process.js
file.
> DEBUG=*queue-process* npm test
There is a lot more you can do with the debug module. Please investigate further if this information is not enough.
- Introduction
- Tutorial
- Queue Constructor
- Queue Connection
- Queue Options
- Queue PubSub
- Queue Master
- Queue Events
- State Document
- Job Processing
- Job Options
- Job Status
- Job Retry
- Job Repeat
- Job Logging
- Job Editing
- Job Schema
- Job Name
- Complex Job
- Delayed Job
- Cancel Job
- Error Handling
- Queue.createJob
- Queue.addJob
- Queue.getJob
- Queue.findJob
- Queue.findJobByName
- Queue.containsJobByName
- Queue.cancelJob
- Queue.reanimateJob
- Queue.removeJob
- Queue.process
- Queue.review
- Queue.summary
- Queue.ready
- Queue.pause
- Queue.resume
- Queue.reset
- Queue.stop
- Queue.drop
- Queue.Job
- Queue.host
- Queue.port
- Queue.db
- Queue.name
- Queue.r
- Queue.id
- Queue.jobOptions [R/W]
- Queue.changeFeed
- Queue.master
- Queue.masterInterval
- Queue.removeFinishedJobs
- Queue.running
- Queue.concurrency [R/W]
- Queue.paused
- Queue.idle
- Event.ready
- Event.added
- Event.updated
- Event.active
- Event.processing
- Event.progress
- Event.log
- Event.pausing
- Event.paused
- Event.resumed
- Event.completed
- Event.cancelled
- Event.failed
- Event.terminated
- Event.reanimated
- Event.removed
- Event.idle
- Event.reset
- Event.error
- Event.reviewed
- Event.detached
- Event.stopping
- Event.stopped
- Event.dropped
- Job.setName
- Job.setPriority
- Job.setTimeout
- Job.setDateEnable
- Job.setRetryMax
- Job.setRetryDelay
- Job.setRepeat
- Job.setRepeatDelay
- Job.updateProgress
- Job.update
- Job.getCleanCopy
- Job.addLog
- Job.getLastLog