File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/core/src/v3/apiClient Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -973,7 +973,6 @@ export class ApiClient {
973973 "Content-Type" : "application/json" ,
974974 Authorization : `Bearer ${ this . accessToken } ` ,
975975 "trigger-version" : VERSION ,
976- "x-trigger-engine-version" : "V2" ,
977976 ...Object . entries ( additionalHeaders ?? { } ) . reduce (
978977 ( acc , [ key , value ] ) => {
979978 if ( value !== undefined ) {
@@ -989,6 +988,8 @@ export class ApiClient {
989988 // Only inject the context if we are inside a task
990989 if ( taskContext . isInsideTask ) {
991990 headers [ "x-trigger-worker" ] = "true" ;
991+ // Only pass the engine version if we are inside a task
992+ headers [ "x-trigger-engine-version" ] = "V2" ;
992993
993994 if ( spanParentAsLink ) {
994995 headers [ "x-trigger-span-parent-as-link" ] = "1" ;
You can’t perform that action at this time.
0 commit comments