-
Notifications
You must be signed in to change notification settings - Fork 16
Job API
Grant Carthew edited this page Sep 30, 2016
·
22 revisions
There are two main public objects within rethinkdb-job-queue
being the Queue object and the Job object.
The Queue object is your main interface. You use the Queue to create Job objects and also to add the Job objects to the job queue. The Queue is also used to process your jobs.
Job objects are stored in the RethinkDB database and contain the details or data required for your job processing.
Note: Although the properties below do not indicate [Read Only], do not change them without first looking at the documentation. They have not been made as getters or setters to facilitate serialization.
API | Type | Description |
---|---|---|
Job.setPriority | Method | Changes the jobs priority value |
Job.setTimeout | Method | Changes the jobs timeout value |
Job.setRetryMax | Method | Changes the jobs retryMax value |
Job.setRetryDelay | Method | Changes the jobs retryDelay value |
Job.setDateEnable | Method | Changes the jobs dateEnable value |
Job.setProgress | Method | Updates the jobs progress |
Job.update | Method | Updates the jobs properties |
Job.getCleanCopy | Method | Returns a data copy without the Queue reference |
Job.createLog | Method | Creates a log object |
Job.addLog | Method | Saves a log entry against the job |
Job.id | Property | The UUID for the job |
Job.priority | Property | Priority value for the job |
Job.timeout | Property | The processing timeout value for the job |
Job.retryDelay | Property | After failure, the delay before retry |
Job.retryMax | Property | Maximum number or job retries |
Job.retryCount | Property | How many times the job has been retried |
Job.progress | Property | Percentage of progress for the job |
Job.status | Property | Current status for the job |
Job.log | Property | Array of log entries |
Job.dateCreated | Property | Date the job was created |
Job.dateEnable | Property | Date the job will be enabled |
Job.dateStarted | Property | Date the job processing started |
Job.dateFinished | Property | Date the job processing finished |
Job.queueId | Property | Queue id that last updated the job |
- 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