@cleotasks/core
Version:
A distributed task queue system for Node.js, inspired by Celery and BullMQ
15 lines (14 loc) • 496 B
TypeScript
import { Job } from 'bullmq';
import { Task } from '../types/interfaces';
export declare class DependencyManager {
private dependencyQueue;
constructor();
addTaskWithDependencies(task: Task, dependencies: string[], timeout?: number): Promise<Job>;
checkDependencies(dependencies: string[]): Promise<boolean>;
getDependencyStatus(taskId: string): Promise<{
completed: string[];
pending: string[];
failed: string[];
}>;
close(): Promise<void>;
}