File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
invokeai/frontend/web/src/features/controlLayers/konva Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -326,10 +326,6 @@ export class CanvasStateApiModule extends CanvasModuleBase {
326
326
return ;
327
327
}
328
328
329
- // event.status is 'failed', 'canceled' or 'completed' - something has gone awry
330
- _clearTimeout ( ) ;
331
- clearListeners ( ) ;
332
-
333
329
if ( event . status === 'completed' ) {
334
330
/**
335
331
* The invocation_complete event should have been received before the queue item completed event, and the
@@ -342,9 +338,16 @@ export class CanvasStateApiModule extends CanvasModuleBase {
342
338
*
343
339
* For now, we'll just log a warning instead of rejecting the promise. This should be super rare anyways.
344
340
*/
345
- this . log . warn ( 'Queue item completed without output node completion event' ) ;
346
341
// reject(new Error('Queue item completed without output node completion event'));
347
- } else if ( event . status === 'failed' ) {
342
+ this . log . warn ( 'Queue item completed without output node completion event' ) ;
343
+ return ;
344
+ }
345
+
346
+ // event.status is 'failed', 'canceled' - something has gone awry
347
+ _clearTimeout ( ) ;
348
+ clearListeners ( ) ;
349
+
350
+ if ( event . status === 'failed' ) {
348
351
// We expect the event to have error details, but technically it's possible that it doesn't
349
352
const { error_type, error_message, error_traceback } = event ;
350
353
if ( error_type && error_message && error_traceback ) {
You can’t perform that action at this time.
0 commit comments