@juspay/neurolink
Version:
Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio
28 lines (27 loc) • 1 kB
TypeScript
/**
* NodeTimeout Backend — Development/zero-dependency task scheduling.
*
* - Cron tasks → parsed with `croner`, scheduled via setTimeout chains
* - Interval tasks → setInterval
* - One-shot tasks → setTimeout
* - All timers are in-process — lost on restart
*/
import { type Task, type TaskBackend, type TaskExecutorFn, type TaskManagerConfig } from "../../types/index.js";
export declare class NodeTimeoutBackend implements TaskBackend {
readonly name = "node-timeout";
private scheduled;
private paused;
private disposed;
private activeRuns;
private maxConcurrentRuns;
constructor(config: TaskManagerConfig);
initialize(): Promise<void>;
shutdown(): Promise<void>;
schedule(task: Task, executor: TaskExecutorFn): Promise<void>;
cancel(taskId: string): Promise<void>;
pause(taskId: string): Promise<void>;
resume(taskId: string): Promise<void>;
isHealthy(): Promise<boolean>;
private executeTask;
private clearEntry;
}