ashb commented on code in PR #43941:
URL: https://github.com/apache/airflow/pull/43941#discussion_r1840223341
##########
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:
I've been chatting to @xBis7 about this, and we're not sure that this
active_spans idea will work with Airflow's HA schedulers. We are exploring
options.
--
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]