UNPKG

@sidequest/engine

Version:

@sidequest/engine is the core engine of SideQuest, a distributed background job processing system for Node.js and TypeScript.

13 lines (10 loc) 537 B
import { Backend } from '@sidequest/backend'; /** * Finds and releases stale jobs, making them available for processing again. * @param backend The backend instance to operate on. * @param maxStaleMs Maximum age of a job to be considered stale. * @param maxClaimedMs Maximum age of a claimed job to be considered stale. * @returns A promise that resolves when the operation is complete. */ declare function releaseStaleJobs(backend: Backend, maxStaleMs: number, maxClaimedMs: number): Promise<void>; export { releaseStaleJobs };