@@ -418,7 +418,6 @@ function handleServerside(
418
418
background : BackgroundCallbackInfo | undefined ,
419
419
additionalArgs : [ string , string , boolean ?] [ ] | undefined ,
420
420
getState : any ,
421
- output : string ,
422
421
running : any
423
422
) : Promise < CallbackResponse > {
424
423
if ( hooks . request_pre ) {
@@ -572,7 +571,7 @@ function handleServerside(
572
571
cacheKey : data . cacheKey as string ,
573
572
cancelInputs : data . cancel ,
574
573
progressDefault : data . progressDefault ,
575
- output
574
+ output : JSON . stringify ( payload . outputs )
576
575
} ;
577
576
dispatch ( addCallbackJob ( jobInfo ) ) ;
578
577
job = data . job ;
@@ -791,9 +790,10 @@ export function executeCallback(
791
790
let lastError : any ;
792
791
793
792
const additionalArgs : [ string , string , boolean ?] [ ] = [ ] ;
793
+ const jsonOutput = JSON . stringify ( payload . outputs ) ;
794
794
values ( getState ( ) . callbackJobs ) . forEach (
795
795
( job : CallbackJobPayload ) => {
796
- if ( cb . callback . output === job . output ) {
796
+ if ( jsonOutput === job . output ) {
797
797
// Terminate the old jobs that are not completed
798
798
// set as outdated for the callback promise to
799
799
// resolve and remove after.
@@ -830,7 +830,6 @@ export function executeCallback(
830
830
background ,
831
831
additionalArgs . length ? additionalArgs : undefined ,
832
832
getState ,
833
- cb . callback . output ,
834
833
cb . callback . running
835
834
) ;
836
835
0 commit comments