The GitHub Actions job "Tests (AMD)" on 
airflow.git/fix-otel-detach-context-execution-api has succeeded.
Run started by GitHub user dheerajturaga (triggered by dheerajturaga).

Head commit for run:
105409720d820d42e0a81c6db08c0c9687101b10 / Dheeraj Turaga 
<[email protected]>
Fix spurious "Failed to detach context" error on Execution API disconnects

The Execution API trace-propagation dependency attaches an OpenTelemetry
context before yielding and detaches it afterwards. When a client disconnects
or the request is cancelled, the dependency generator is force-closed from a
different asyncio task, so the detach ran against a contextvars.Token created
in a different Context. OpenTelemetry caught and logged that ValueError at
ERROR ("Failed to detach context") before our suppression could see it,
producing alarming but harmless log noise on the Dag processor and other
clients.

Skip the detach on the GeneratorExit unwind path, where the originating
Context is being discarded anyway, and detach only on normal completion.

Report URL: https://github.com/apache/airflow/actions/runs/26979904784

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to