Refactor: Ensure heartbeat alarm is always cleared

This commit is contained in:
2025-11-06 18:48:21 -08:00
parent 981e7dc745
commit b116481497

View File

@@ -358,7 +358,6 @@ export class MyDurableObject {
}
async stopHeartbeat() {
if (!this.hbActive) return;
this.hbActive = false;
const ageSeconds = (this.age * HB_INTERVAL_MS) / 1000;
this.notify(`Run ${this.rid} ended. Phase: ${this.phase}. Age: ${ageSeconds.toFixed(1)}s.`, 3, ['stop_sign']);