You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "deepak4babu (via GitHub)" <gi...@apache.org> on 2026/02/13 09:45:25 UTC

[I] Metric dag...duration is missing [airflow]

deepak4babu opened a new issue, #61849:
URL: https://github.com/apache/airflow/issues/61849

   ### Apache Airflow version
   
   Other Airflow 3 version (please specify below)
   
   ### If "Other Airflow 3 version" selected, which one?
   
   3.0.6
   
   ### What happened?
   
   Metric dag.<dag_id>.<task_id>.duration is missing.
   
   Found that the metric was removed in this particular commit - https://github.com/apache/airflow/pull/50141/files#diff-f660147b2482fe9eb7c256a6e9b5c0d8c0623fc31beaf5048e476e9bd1b7823b
   
   Is this intended?
   
   ### What you think should happen instead?
   
   Metric dag.<dag_id>.<task_id>.duration should be available as per documentation.
   
   ### How to reproduce
   
   Scrape airflow metrics and look for dag.<dag_id>.<task_id>.duration metric.
   
   ### Operating System
   
   Debian GNU/Linux 12 (bookworm)
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-celery==3.12.2
   apache-airflow-providers-cncf-kubernetes==10.8.2
   apache-airflow-providers-common-compat==1.7.3
   apache-airflow-providers-common-io==1.6.2
   apache-airflow-providers-common-sql==1.27.5
   apache-airflow-providers-fab==2.4.1
   apache-airflow-providers-ftp==3.13.2
   apache-airflow-providers-http==5.3.3
   apache-airflow-providers-imap==3.9.2
   apache-airflow-providers-postgres==6.2.3
   apache-airflow-providers-smtp==2.2.0
   apache-airflow-providers-sqlite==4.1.2
   apache-airflow-providers-standard==1.6.0
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   We use a slightly modified airflow helm chart
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Metric dag...duration is missing [airflow]

Posted by "cruseakshay (via GitHub)" <gi...@apache.org>.
cruseakshay commented on issue #61849:
URL: https://github.com/apache/airflow/issues/61849#issuecomment-3919532438

   This is present in 3.1.7


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Metric dag...duration is missing [airflow]

Posted by "shivaam (via GitHub)" <gi...@apache.org>.
shivaam commented on issue #61849:
URL: https://github.com/apache/airflow/issues/61849#issuecomment-4188380456

   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


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Metric dag...duration is missing [airflow]

Posted by "melicheradam (via GitHub)" <gi...@apache.org>.
melicheradam commented on issue #61849:
URL: https://github.com/apache/airflow/issues/61849#issuecomment-4053998592

   Present in 3.1.8 aswell


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Metric dag...duration is missing [airflow]

Posted by "anavrotski (via GitHub)" <gi...@apache.org>.
anavrotski commented on issue #61849:
URL: https://github.com/apache/airflow/issues/61849#issuecomment-3904712418

   maybr related https://github.com/apache/airflow/issues/61887
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Metric dag...duration is missing [airflow]

Posted by "laurenhall1526-netizen (via GitHub)" <gi...@apache.org>.
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Metric dag...duration is missing [airflow]

Posted by "abhijeets25012-tech (via GitHub)" <gi...@apache.org>.
abhijeets25012-tech commented on issue #61849:
URL: https://github.com/apache/airflow/issues/61849#issuecomment-3901825566

   i would like to contribute


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org