(event: PartialTaskEvent)
| 88 | name: taskType, |
| 89 | executor: async (dispatcher): Promise<boolean> => { |
| 90 | const newDispatcher = (event: PartialTaskEvent) => { |
| 91 | dispatcher(event); |
| 92 | comfyuiService.comfyuiProgressEvent.emit({ |
| 93 | type: "OUTPUT", |
| 94 | message: event.message || "" |
| 95 | }) |
| 96 | } |
| 97 | async function withTimeout(task: Promise<any>, timeout: number, errorMessage: string): Promise<boolean> { |
| 98 | const timeoutId = setTimeout(() => { |
| 99 | newDispatcher({ type: 'TIMEOUT', message: errorMessage }); |
no test coverage detected