Purge
pulse.purge()
pulse.purge()
The purge
method is used to clean out the job queue by removing jobs that do not match the currently defined job types. It ensures that the job database does not contain obsolete or irrelevant job records, maintaining the efficiency and accuracy of the job management system.
Example Usage
Returns
Promise<number | undefined>
: A promise that resolves with the number of jobs that were deleted from the database. If no jobs were deleted, the promise may resolve toundefined
.
Last updated