version_final_sans_test

This commit is contained in:
2025-09-23 14:51:00 +02:00
parent b4061e8aff
commit 6577083b06
184 changed files with 19853 additions and 512 deletions

View File

@@ -0,0 +1,30 @@
import EventEmitter from "events";
import { ScheduledTask, TaskContext, TaskEvent, TaskFn, TaskOptions } from "./scheduled-task";
import { Runner } from "../scheduler/runner";
import { TimeMatcher } from "../time/time-matcher";
import { StateMachine } from "./state-machine";
declare class TaskEmitter extends EventEmitter {
}
export declare class InlineScheduledTask implements ScheduledTask {
emitter: TaskEmitter;
cronExpression: string;
timeMatcher: TimeMatcher;
runner: Runner;
id: string;
name: string;
stateMachine: StateMachine;
timezone?: string;
constructor(cronExpression: string, taskFn: TaskFn, options?: TaskOptions);
getNextRun(): Date | null;
private changeState;
start(): void;
stop(): void;
getStatus(): string;
destroy(): void;
execute(): Promise<any>;
on(event: TaskEvent, fun: (context: TaskContext) => Promise<void> | void): void;
off(event: TaskEvent, fun: (context: TaskContext) => Promise<void> | void): void;
once(event: TaskEvent, fun: (context: TaskContext) => Promise<void> | void): void;
private createContext;
}
export {};