@@ -627,6 +627,7 @@ export async function batchTriggerById<TTask extends AnyTask>(
627627 idempotencyKeyTTL : item . options ?. idempotencyKeyTTL ?? options ?. idempotencyKeyTTL ,
628628 machine : item . options ?. machine ,
629629 priority : item . options ?. priority ,
630+ region : item . options ?. region ,
630631 lockToVersion : item . options ?. version ?? getEnvVar ( "TRIGGER_VERSION" ) ,
631632 } ,
632633 } satisfies BatchTriggerTaskV2RequestBody [ "items" ] [ 0 ] ;
@@ -796,6 +797,7 @@ export async function batchTriggerByIdAndWait<TTask extends AnyTask>(
796797 idempotencyKeyTTL : item . options ?. idempotencyKeyTTL ?? options ?. idempotencyKeyTTL ,
797798 machine : item . options ?. machine ,
798799 priority : item . options ?. priority ,
800+ region : item . options ?. region ,
799801 } ,
800802 } satisfies BatchTriggerTaskV2RequestBody [ "items" ] [ 0 ] ;
801803 } )
@@ -955,6 +957,7 @@ export async function batchTriggerTasks<TTasks extends readonly AnyTask[]>(
955957 idempotencyKeyTTL : item . options ?. idempotencyKeyTTL ?? options ?. idempotencyKeyTTL ,
956958 machine : item . options ?. machine ,
957959 priority : item . options ?. priority ,
960+ region : item . options ?. region ,
958961 lockToVersion : item . options ?. version ?? getEnvVar ( "TRIGGER_VERSION" ) ,
959962 } ,
960963 } satisfies BatchTriggerTaskV2RequestBody [ "items" ] [ 0 ] ;
@@ -1126,6 +1129,7 @@ export async function batchTriggerAndWaitTasks<TTasks extends readonly AnyTask[]
11261129 idempotencyKeyTTL : item . options ?. idempotencyKeyTTL ?? options ?. idempotencyKeyTTL ,
11271130 machine : item . options ?. machine ,
11281131 priority : item . options ?. priority ,
1132+ region : item . options ?. region ,
11291133 } ,
11301134 } satisfies BatchTriggerTaskV2RequestBody [ "items" ] [ 0 ] ;
11311135 } )
@@ -1198,6 +1202,7 @@ async function trigger_internal<TRunTypes extends AnyRunTypes>(
11981202 parentRunId : taskContext . ctx ?. run . id ,
11991203 machine : options ?. machine ,
12001204 priority : options ?. priority ,
1205+ region : options ?. region ,
12011206 lockToVersion : options ?. version ?? getEnvVar ( "TRIGGER_VERSION" ) ,
12021207 } ,
12031208 } ,
@@ -1270,6 +1275,7 @@ async function batchTrigger_internal<TRunTypes extends AnyRunTypes>(
12701275 idempotencyKeyTTL : item . options ?. idempotencyKeyTTL ?? options ?. idempotencyKeyTTL ,
12711276 machine : item . options ?. machine ,
12721277 priority : item . options ?. priority ,
1278+ region : item . options ?. region ,
12731279 lockToVersion : item . options ?. version ?? getEnvVar ( "TRIGGER_VERSION" ) ,
12741280 } ,
12751281 } satisfies BatchTriggerTaskV2RequestBody [ "items" ] [ 0 ] ;
@@ -1354,6 +1360,7 @@ async function triggerAndWait_internal<TIdentifier extends string, TPayload, TOu
13541360 idempotencyKeyTTL : options ?. idempotencyKeyTTL ,
13551361 machine : options ?. machine ,
13561362 priority : options ?. priority ,
1363+ region : options ?. region ,
13571364 } ,
13581365 } ,
13591366 { } ,
@@ -1444,6 +1451,7 @@ async function batchTriggerAndWait_internal<TIdentifier extends string, TPayload
14441451 idempotencyKeyTTL : item . options ?. idempotencyKeyTTL ?? options ?. idempotencyKeyTTL ,
14451452 machine : item . options ?. machine ,
14461453 priority : item . options ?. priority ,
1454+ region : item . options ?. region ,
14471455 } ,
14481456 } satisfies BatchTriggerTaskV2RequestBody [ "items" ] [ 0 ] ;
14491457 } )
0 commit comments