File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -756,11 +756,11 @@ export class SharedQueueConsumer {
756
756
return ;
757
757
}
758
758
759
- const failed = responses . filter ( ( response ) => ! response . success ) ;
760
- if ( failed . length > 0 ) {
761
- logger . error ( "RESUME_AFTER_DEPENDENCY_WITH_ACK failed" , {
759
+ const hasSuccess = responses . some ( ( response ) => response . success ) ;
760
+ if ( ! hasSuccess ) {
761
+ logger . warn ( "RESUME_AFTER_DEPENDENCY_WITH_ACK failed" , {
762
762
resumeMessage,
763
- failed ,
763
+ responses ,
764
764
message,
765
765
} ) ;
766
766
await this . #nackAndDoMoreWork( message . messageId , this . _options . nextTickInterval , 5_000 ) ;
@@ -775,7 +775,12 @@ export class SharedQueueConsumer {
775
775
776
776
this . _endSpanInNextIteration = true ;
777
777
778
- await this . #nackAndDoMoreWork( message . messageId ) ;
778
+ logger . error ( "RESUME_AFTER_DEPENDENCY_WITH_ACK threw, nacking with delay" , {
779
+ message,
780
+ error : e ,
781
+ } ) ;
782
+
783
+ await this . #nackAndDoMoreWork( message . messageId , this . _options . nextTickInterval , 5_000 ) ;
779
784
return ;
780
785
}
781
786
You can’t perform that action at this time.
0 commit comments