Skip to content

Commit cba095e

Browse files
committed
log remaining failure reasons
1 parent 13498ec commit cba095e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

apps/coordinator/src/index.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,10 @@ class TaskCoordinator {
527527
}
528528

529529
if (!lazyAttempt.success) {
530-
logger.error("failed to get lazy attempt payload", { runId: socket.data.runId });
530+
logger.error("failed to get lazy attempt payload", {
531+
runId: socket.data.runId,
532+
reason: lazyAttempt.reason,
533+
});
531534

532535
await crashRun({
533536
name: "ReadyForLazyAttemptError",
@@ -1007,7 +1010,10 @@ class TaskCoordinator {
10071010
});
10081011

10091012
if (!createAttempt?.success) {
1010-
logger.debug("no ack while creating attempt", message);
1013+
logger.debug("no ack while creating attempt", {
1014+
runId: message.runId,
1015+
reason: createAttempt?.reason,
1016+
});
10111017
callback({ success: false, reason: createAttempt?.reason });
10121018
return;
10131019
}

0 commit comments

Comments
 (0)