@@ -471,16 +471,17 @@ kj::Promise<WorkerInterface::AlarmResult> ServiceWorkerGlobalScope::runAlarm(kj:
471
471
!jsg::isDoNotLogException (desc) && context.isOutputGateBroken ()) {
472
472
LOG_NOSENTRY (ERROR, " output lock broke during alarm execution" , actorId, e);
473
473
} else if (context.isOutputGateBroken ()) {
474
- // We don't usually log these messages, but it's useful to know the real reason we failed
475
- // to correctly investigate stuck alarms.
476
- LOG_NOSENTRY (ERROR,
477
- " output lock broke during alarm execution without an interesting error description" ,
478
- actorId, e);
479
- if (e.getDetail (jsg::EXCEPTION_IS_USER_ERROR) != kj::none) {
474
+ if (e.getDetail (jsg::EXCEPTION_IS_USER_ERROR) != kj::none`) {
480
475
// The handler failed because the user overloaded the object. It's their fault, we'll not
481
476
// retry forever.
482
477
shouldRetryCountsAgainstLimits = true ;
483
478
}
479
+
480
+ // We don't usually log these messages, but it's useful to know the real reason we failed
481
+ // to correctly investigate stuck alarms.
482
+ LOG_NOSENTRY (ERROR,
483
+ " output lock broke during alarm execution without an interesting error description" ,
484
+ actorId, e, shouldRetryCountsAgainstLimits);
484
485
}
485
486
return WorkerInterface::AlarmResult{.retry = true ,
486
487
.retryCountsAgainstLimit = shouldRetryCountsAgainstLimits,
@@ -511,16 +512,16 @@ kj::Promise<WorkerInterface::AlarmResult> ServiceWorkerGlobalScope::runAlarm(kj:
511
512
LOG_NOSENTRY (ERROR, " output lock broke after executing alarm" , actorId, e);
512
513
}
513
514
} else {
514
- // We don't usually log these messages, but it's useful to know the real reason we failed
515
- // to correctly investigate stuck alarms.
516
- LOG_NOSENTRY (ERROR,
517
- " output lock broke after executing alarm without an interesting error description" ,
518
- actorId, e);
519
515
if (e.getDetail (jsg::EXCEPTION_IS_USER_ERROR) != kj::none) {
520
516
// The handler failed because the user overloaded the object. It's their fault, we'll not
521
517
// retry forever.
522
518
shouldRetryCountsAgainstLimits = true ;
523
519
}
520
+ // We don't usually log these messages, but it's useful to know the real reason we failed
521
+ // to correctly investigate stuck alarms.
522
+ LOG_NOSENTRY (ERROR,
523
+ " output lock broke after executing alarm without an interesting error description" ,
524
+ actorId, e, shouldRetryCountsAgainstLimits);
524
525
}
525
526
return WorkerInterface::AlarmResult{.retry = true ,
526
527
.retryCountsAgainstLimit = shouldRetryCountsAgainstLimits,
0 commit comments