PHP 8.2.30
Preview: runner.d.ts Size: 1.31 KB
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/node-cron/dist/cjs/scheduler/runner.d.ts

import { Execution } from "../tasks/scheduled-task";
import { TimeMatcher } from "../time/time-matcher";
type OnFn = (date: Date) => void | Promise<void>;
type OnErrorHookFn = (date: Date, error: Error, execution: Execution) => void | Promise<void>;
type OnHookFn = (date: Date, execution: Execution) => boolean | Promise<boolean>;
type OnMatch = (date: Date, execution: Execution) => any | Promise<any>;
export type RunnerOptions = {
    noOverlap?: boolean;
    timezone?: string;
    maxExecutions?: number;
    maxRandomDelay?: number;
    onMissedExecution?: OnFn;
    onOverlap?: OnFn;
    onError?: OnErrorHookFn;
    onFinished?: OnHookFn;
    beforeRun?: OnHookFn;
    onMaxExecutions?: OnFn;
};
export declare class Runner {
    timeMatcher: TimeMatcher;
    onMatch: OnMatch;
    noOverlap: boolean;
    maxExecutions?: number;
    maxRandomDelay: number;
    runCount: number;
    running: boolean;
    heartBeatTimeout?: NodeJS.Timeout;
    onMissedExecution: OnFn;
    onOverlap: OnFn;
    onError: OnErrorHookFn;
    beforeRun: OnHookFn;
    onFinished: OnHookFn;
    onMaxExecutions: OnFn;
    constructor(timeMatcher: TimeMatcher, onMatch: OnMatch, options?: RunnerOptions);
    start(): void;
    nextRun(): Date;
    stop(): void;
    isStarted(): boolean;
    isStopped(): boolean;
    execute(): Promise<void>;
}
export {};

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
1.31 KB lrw-r--r-- 2026-02-21 00:54:22
Edit Download
7.07 KB lrw-r--r-- 2026-02-21 00:54:00
Edit Download
6.08 KB lrw-r--r-- 2026-02-21 00:54:08
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).