Skip to content

Commit c308ad2

Browse files
committed
Added parentRunId in a couple more places
1 parent 8b33031 commit c308ad2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/trigger-sdk/src/v3/shared.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,7 @@ export async function batchTriggerById<TTask extends AnyTask>(
617617
};
618618
})
619619
),
620+
parentRunId: taskContext.ctx?.run.id,
620621
},
621622
{
622623
spanParentAsLink: true,
@@ -1204,6 +1205,7 @@ async function trigger_internal<TRunTypes extends AnyRunTypes>(
12041205
parentAttempt: taskContext.ctx?.attempt.id,
12051206
metadata: options?.metadata,
12061207
maxDuration: options?.maxDuration,
1208+
parentRunId: taskContext.ctx?.run.id,
12071209
},
12081210
},
12091211
{

0 commit comments

Comments
 (0)