File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -149,11 +149,14 @@ export class Activity {
149149        ( error  instanceof  CancelledFailure  ||  isAbortError ( error ) )  && 
150150        this . context . cancellationSignal . aborted 
151151      )  { 
152-         if  ( this . context . cancellationDetails ?. reset )  { 
152+         if  ( this . context . cancellationDetails ?. cancelRequested )  { 
153+           this . workerLogger . debug ( 'Activity completed as cancelled' ,  {  durationMs } ) ; 
154+         }  else  if  ( this . context . cancellationDetails ?. reset )  { 
153155          this . workerLogger . debug ( 'Activity reset' ,  {  durationMs } ) ; 
154156        }  else  if  ( this . context . cancellationDetails ?. paused )  { 
155157          this . workerLogger . debug ( 'Activity paused' ,  {  durationMs } ) ; 
156158        }  else  { 
159+           // Fallback log - completed as cancelled. 
157160          this . workerLogger . debug ( 'Activity completed as cancelled' ,  {  durationMs } ) ; 
158161        } 
159162      }  else  if  ( error  instanceof  CompleteAsyncError )  { 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments