Internal method that adds jobs to be processed to the local queue
Internal method that processes any jobs in the local queue (array) handledJobs keeps list of already processed jobs
Internal method used to fill a queue with jobs that can be run
fill a queue with specific job name
Internal method that will lock a job and store it on MongoDB This method is called when we immediately start to process a job without using the process interval We do this because sometimes jobs are scheduled but will be run before the next process time
Internal method that tries to run a job and if it fails, retries again!
processed a job or not
Returns true if a job of the specified name can be locked. Considers maximum locked jobs at any time if self._lockLimit is > 0 Considers maximum locked jobs of the specified name at any time if jobDefinition.lockLimit is > 0
name of job to check if we should lock or not
whether or not you should lock job
Generated using TypeDoc