Methods
createJob(agenda, jobData) → {Job}
Create Job object from data
Parameters:
Name | Type | Description |
---|---|---|
agenda |
Object |
instance of Agenda |
jobData |
Object |
job data |
- Source:
createJob(agenda, jobData) → {Job}
Create Job object from data
Parameters:
Name | Type | Description |
---|---|---|
agenda |
Object |
instance of Agenda |
jobData |
Object |
job data |
- Source:
hasMongoProtocol(url)
Given a mongo connection url will check if it contains the mongo
Parameters:
Name | Type | Description |
---|---|---|
url |
URL to be tested |
- Source:
hasMongoProtocol(url)
Given a mongo connection url will check if it contains the mongo
Parameters:
Name | Type | Description |
---|---|---|
url |
URL to be tested |
- Source:
parsePriority(priority)
Internal method to turn priority into a number
Parameters:
Name | Type | Description |
---|---|---|
priority |
string to parse into number |
- Source:
parsePriority(priority)
Internal method to turn priority into a number
Parameters:
Name | Type | Description |
---|---|---|
priority |
string to parse into number |
- Source:
priority(priority)
Sets priority of the job
Parameters:
Name | Type | Description |
---|---|---|
priority |
priority of when job should be queued |
- Source:
priority(priority)
Sets priority of the job
Parameters:
Name | Type | Description |
---|---|---|
priority |
priority of when job should be queued |
- Source:
processJobs(extraJob)
Process methods for jobs
Parameters:
Name | Type | Description |
---|---|---|
extraJob |
Job |
job to run immediately |
- Source:
processJobs(extraJob)
Process methods for jobs
Parameters:
Name | Type | Description |
---|---|---|
extraJob |
Job |
job to run immediately |
- Source: