UNPKG

comfyui-node

Version:
24 lines 1.14 kB
import { MultiWorkflowPool } from "./multi-workflow-pool.js"; import { Workflow } from "./workflow.js"; import { Logger } from "./logger.js"; import { EnhancedClient } from "./interfaces.js"; export declare class ClientRegistry { pool: MultiWorkflowPool; private logger; clients: Map<string, EnhancedClient>; workflowAffinityMap: Map<string, Set<string>>; constructor(pool: MultiWorkflowPool, logger: Logger); addClient(clientUrl: string, options?: { workflowAffinity: Workflow[]; priority?: number; }): void; removeClient(clientUrl: string): void; getQueueStatus(clientUrl: string): Promise<import("../types/api.js").QueueResponse>; getOptimalClient(workflow: Workflow): EnhancedClient | null; hasClientsForWorkflow(workflowHash: string): boolean; getOptimalIdleClient(workflow: Workflow): Promise<EnhancedClient | null>; private checkClientQueueState; markClientIncompatibleWithWorkflow(url: string, structureHash: string | undefined): void; getAllEligibleClientsForWorkflow(workflow: Workflow): EnhancedClient[]; } //# sourceMappingURL=client-registry.d.ts.map