laurenhall1526-netizen commented on issue #61849: URL: https://github.com/apache/airflow/issues/61849#issuecomment-4189439508
Yep, I can confirm this is present in 3.1.8 as well. Seeing the same behavior — duration metric isn’t emitted for skipped tasks, while success/failed ones look fine. On Sun, Apr 5, 2026, 1:20 AM Shivam Rastogi ***@***.***> wrote: > *shivaam* left a comment (apache/airflow#61849) > <https://github.com/apache/airflow/issues/61849#issuecomment-4188380456> > > I can reproduce the bug on stock apache/airflow:3.1.8 with statsd, but > only for tasks that end in skipped state. Success and failed tasks emit > dag.<dag_id>.<task_id>.duration fine for me. > > To confirm this matches what you're seeing: > > 1. Are the affected tasks ending in success or skipped? (Check one > task you know succeeds — if its duration is present, we're on the same bug.) > 2. Are you using ShortCircuitOperator, BranchPythonOperator, or > BashOperator with skip_on_exit_code? > 3. If successful tasks are also missing the metric, that's a different > bug — please share a minimal repro or details about the task you ran > > — > Reply to this email directly, view it on GitHub > <https://github.com/apache/airflow/issues/61849#issuecomment-4188380456>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/B7IHA4Z3OU7TJ7DIXTGXF3D4UH3J7AVCNFSM6AAAAACVAHSQO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DCOBYGM4DANBVGY> > . > You are receiving this because you are subscribed to this thread.Message > ID: ***@***.***> > -- 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]
