Skip to content

Commit

Permalink
If we’re keeping the run alive then set socket.data.requiresCheckpoin…
Browse files Browse the repository at this point in the history
…tResumeWithMessage to undefined
  • Loading branch information
matt-aitken committed Sep 18, 2024
1 parent 2dd5d46 commit 0efed14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/coordinator/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ class TaskCoordinator {
});

if (ack?.keepRunAlive) {
socket.data.requiresCheckpointResumeWithMessage = undefined;
logger.log("keeping run alive after task checkpoint", { runId: socket.data.runId });
return;
}
Expand Down Expand Up @@ -930,6 +931,7 @@ class TaskCoordinator {
});

if (ack?.keepRunAlive) {
socket.data.requiresCheckpointResumeWithMessage = undefined;
logger.log("keeping run alive after batch checkpoint", { runId: socket.data.runId });
return;
}
Expand Down

0 comments on commit 0efed14

Please sign in to comment.