-
Notifications
You must be signed in to change notification settings - Fork 16
Scripts
Grant Carthew edited this page Jan 24, 2018
·
6 revisions
To test and build the rethinkdb-job-queue
package you need to run scripts. These scripts are managed in the package.json file as npm scripts.
The best source of information about the scripts is to review the scripts
section of the package.json file and learn from that. To get you started though, this document lists the common useful scripts below.
If you have docker-compose
installed there is a docker-compose.yaml
file in the root of the repository you can use to launch an instance of RethinkDB. This is handy for testing purposes.
To use the below commands from the command line, change directory into the location you have rethinkdb-job-queue
installed and type the command.
Command Line | Description |
---|---|
npm test |
Integration tests |
npm run tv |
Integration tests with verbose output |
npm run lint |
JavaScript Standard Style linting |
npm run coverage |
Produces a coverage report using Istanbul |
npm run build |
Transpiles the src directory to the dist directory |
npm run upgrade |
Upgrades the projects dependency packages |
docker-compose up |
Launches a RethinkDB instance exposing a local port |
- 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