/** * Used for creating a cronjob. Ensures only one cronjob can be running per instance of this class. */ declare class CronjobService { private job; private createJob; /** * Starts recurring job to fail jobs stuck in running state for too long. * Idempotent operation, no matter how many times you call this function * in a nodejs service instance, only one recurring job will be created within * that instance. * @param cronExpression Expression specifying how often to repeat cleanup procedure */ initiateRecurringJob(cronExpression: string, handler: () => Promise): void; } export { CronjobService };