@penkov/tasks_queue
Version:
A lightweight PostgreSQL-backed task queue system with scheduling, retries, backoff strategies, and priority handling. Designed for efficiency and observability in modern Node.js applications.
12 lines (11 loc) • 449 B
TypeScript
import { TaskContext } from "./tasks-model.js";
import { TasksWorker } from "./tasks-worker.js";
/**
* Internal adapter that turns a provider method into a {@link TasksWorker}.
*/
export declare class DecoratedMethodWorker extends TasksWorker {
private readonly instance;
private readonly methodName;
constructor(instance: Record<string, unknown>, methodName: string);
process(payload: any, context: TaskContext): Promise<void>;
}