File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2229,10 +2229,13 @@ def process_event(
22292229
22302230 # Store the parent orchestration instance ID (set for
22312231 # sub-orchestrations; absent for top-level orchestrations)
2232- if event .executionStarted .HasField ("parentInstance" ) and \
2233- event .executionStarted .parentInstance .HasField ("orchestrationInstance" ):
2232+ if (
2233+ event .executionStarted .HasField ("parentInstance" )
2234+ and event .executionStarted .parentInstance .HasField ("orchestrationInstance" )
2235+ ):
22342236 ctx ._parent_instance_id = ( # pyright: ignore[reportPrivateUsage]
2235- event .executionStarted .parentInstance .orchestrationInstance .instanceId )
2237+ event .executionStarted .parentInstance .orchestrationInstance .instanceId
2238+ )
22362239
22372240 # Store the parent trace context for propagation to child tasks
22382241 if event .executionStarted .HasField ("parentTraceContext" ):
You can’t perform that action at this time.
0 commit comments