Skip to content

Commit a640649

Browse files
committed
Prevent runs that fail fast from never sending a heartbeat
1 parent 41ec450 commit a640649

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/coordinator/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,10 @@ class TaskCoordinator {
568568

569569
if (completion.retry.delay < this.#delayThresholdInMs) {
570570
completeWithoutCheckpoint(false);
571+
572+
// Prevents runs that fail fast from never sending a heartbeat
573+
this.#sendRunHeartbeat(socket.data.runId);
574+
571575
return;
572576
}
573577

0 commit comments

Comments
 (0)