@casoon/auditmysite
Version:
Professional website analysis suite with robust accessibility testing, Core Web Vitals performance monitoring, SEO analysis, and content optimization insights. Features isolated browser contexts, retry mechanisms, and comprehensive API endpoints for profe
48 lines • 1.32 kB
TypeScript
export interface QueueState {
id: string;
urls: string[];
processedUrls: string[];
failedUrls: string[];
currentIndex: number;
totalUrls: number;
results: any[];
startTime: number;
lastUpdateTime: number;
options: {
concurrency: number;
retryLimit: number;
[key: string]: any;
};
status: 'pending' | 'processing' | 'paused' | 'completed' | 'failed';
metadata: {
projectName?: string;
sitemapUrl?: string;
version: string;
[key: string]: any;
};
}
export interface QueueStateAdapter {
save(state: QueueState): Promise<void>;
load(id: string): Promise<QueueState | null>;
exists(id: string): Promise<boolean>;
delete(id: string): Promise<void>;
list(): Promise<string[]>;
cleanup(maxAge?: number): Promise<void>;
}
export interface QueueStateOptions {
adapter?: QueueStateAdapter;
autoSave?: boolean;
saveInterval?: number;
stateId?: string;
resumable?: boolean;
}
export interface ResumeOptions {
stateId: string;
adapter?: QueueStateAdapter;
skipCompleted?: boolean;
}
export declare class QueueStateError extends Error {
cause?: Error | undefined;
constructor(message: string, cause?: Error | undefined);
}
//# sourceMappingURL=queue-state.d.ts.map