xBis7 commented on code in PR #43941:
URL: https://github.com/apache/airflow/pull/43941#discussion_r1869971954


##########
airflow/executors/base_executor.py:
##########
@@ -330,6 +337,30 @@ def trigger_tasks(self, open_slots: int) -> None:
         for _ in range(min((open_slots, len(self.queued_tasks)))):
             key, (command, _, queue, ti) = sorted_queue.pop(0)
 
+            if self.otel_use_context_propagation:
+                # If it's None, then the span for the current TaskInstanceKey 
hasn't been started.
+                if self.active_spans.get(key) is None:

Review Comment:
   @ashb I think that the current approach covers all possible HA scenarios. 
Please let me know how it looks.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to