Skip to content

Commit 6395259

Browse files
committed
Added more logs when resuming a dependency, added the runId
1 parent 92c7341 commit 6395259

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

apps/webapp/app/v3/services/resumeTaskDependency.server.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ export class ResumeTaskDependencyService extends BaseService {
3939
const dependentRun = dependency.dependentAttempt.taskRun;
4040

4141
if (dependency.dependentAttempt.status === "PAUSED" && dependency.checkpointEventId) {
42+
logger.debug(
43+
"Task dependency resume: Attempt is paused and there's a checkpoint. Enqueuing resume with checkpoint.",
44+
{
45+
attemptId: dependency.id,
46+
dependentAttempt: dependency.dependentAttempt,
47+
checkpointEventId: dependency.checkpointEventId,
48+
hasCheckpointEvent: !!dependency.checkpointEventId,
49+
runId: dependentRun.id,
50+
}
51+
);
4252
await marqs?.enqueueMessage(
4353
dependency.taskRun.runtimeEnvironment,
4454
dependentRun.queue,
@@ -61,6 +71,7 @@ export class ResumeTaskDependencyService extends BaseService {
6171
dependentAttempt: dependency.dependentAttempt,
6272
checkpointEventId: dependency.checkpointEventId,
6373
hasCheckpointEvent: !!dependency.checkpointEventId,
74+
runId: dependentRun.id,
6475
});
6576

6677
if (dependency.dependentAttempt.status === "PAUSED" && !dependency.checkpointEventId) {

0 commit comments

Comments
 (0)