You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constmessage=`Telegram spooled update claim held by a live worker for ${formatDurationPrecise(claimedForMs)} without active handler state; marking failed so the lane can continue.`;
684
+
// Same PID with a stale owner id means this process orphaned a previous
685
+
// local handler state; different live PIDs may still be processing.
686
+
if(claimOwner.processPid!==process.pid){
687
+
continue;
688
+
}
689
+
constclaimedForMs=now-claimOwner.claimedAt;
690
+
constmessage=`Telegram spooled update claim owned by this process for ${formatDurationPrecise(claimedForMs)} without active handler state; marking failed so the lane can continue.`;
686
691
try{
687
692
constfailed=awaitfailTelegramSpooledUpdateClaim({
688
693
update: claim,
@@ -691,13 +696,13 @@ export class TelegramPollingSession {
691
696
});
692
697
if(!failed){
693
698
this.opts.log(
694
-
`[telegram][diag] spooled update ${claim.updateId}live-owned claim no longer had a processing marker to fail.`,
699
+
`[telegram][diag] spooled update ${claim.updateId}current-process claim no longer had a processing marker to fail.`,
695
700
);
696
701
continue;
697
702
}
698
703
}catch(err){
699
704
this.opts.log(
700
-
`[telegram][diag] spooled update ${claim.updateId}live-owned claim could not be marked failed: ${formatErrorMessage(err)}`,
705
+
`[telegram][diag] spooled update ${claim.updateId}current-process claim could not be marked failed: ${formatErrorMessage(err)}`,
701
706
);
702
707
continue;
703
708
}
@@ -828,7 +833,7 @@ export class TelegramPollingSession {
0 commit comments