- JobException
JobException for wrapping any Error objects raised here
- Job
A Job to be run
JobException for wrapping any Error objects raised here
Kind: global class
A Job to be run
Kind: global class
- Job
- new Job(options)
- instance
- .setExpiresAt() ⇒
number
- .pushExpiry() ⇒
number
- .setExpiresIn() ⇒
number
- .possiblySetExpiresIn() ⇒
number
- .handleRunCallback()
- .toJSON() ⇒
object
- .setExpiresAt() ⇒
- static
Represents a job to be spawned.
Param | Type | Description |
---|---|---|
options | object |
The options for object for Job/Spawn |
Kind: instance method of Job
Summary:
Convert object to JSON object for JSON.stringify()
Returns:
number
- The timestamp to expire at
Kind: instance method of Job
Summary:
Push the expiry back again by expires
Returns:
number
- - The new millisecond timestamp to expire at
Kind: instance method of Job
Summary:
Set the expires in ms value
Returns:
number
- - New milliseconds until expiry time
Kind: instance method of Job
Summary:
Set the expires in ms value, ignoring falsey values
Returns:
number
- - New milliseconds until expiry time
Kind: instance method of Job
Summary:
Add extra run processing on top of Spawn
for expires
Kind: instance method of Job
Summary:
Convert object to JSON object for JSON.stringify()
Returns:
object
- The instance object to be turned into JSON
Class static initialisation
Kind: static method of Job