You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/04/19 03:11:19 UTC

[GitHub] [airflow] MatrixManAtYrService opened a new issue, #23068: Grid view: "duration" shows 00:00:00 for task expansions

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

   ### Apache Airflow version
   
   2.3.0b1 (pre-release)
   
   ### What happened
   
   Run [a dag with an expanded TimedeltaSensor and a normal TimedeltaSensor](https://gist.github.com/MatrixManAtYrService/051fdc7164d187ab215ff8087e4db043), and navigate to the corresponding entries in the grid view.
   
   While the dag runs:
   - The unmapped task shows its "duration" to be increasing 
   - The mapped task shows a blank entry for the duration
   
   Once the dag has finished:
   - both show `00:00:00` for the duration
   
   
   ### What you think should happen instead
   
   I'm not sure what it should show, probably time spent running?  Or maybe queued + running?  Whatever it should be, 00:00:00 doesn't seem right if it spent 90 seconds waiting around (e.g. in the "running" state)
   
   Also, if we're going to update duration continuously while the normal task is running, we should do the same for the expanded task.
   
   
   ### How to reproduce
   
   run a dag with expanded sensors, notice 00:00:00 duration
   
   ### Operating System
   
   debian (docker)
   
   ### Versions of Apache Airflow Providers
   
   n/a
   
   ### Deployment
   
   Astronomer
   
   ### Deployment details
   
   `astrocloud dev start`
   
   Dockerfile:
   ```
   FROM quay.io/astronomer/ap-airflow-dev:main
   ```
   
   image at airflow version 6d6ac2b2bcbb0547a488a1a13fea3cb1a69d24e8
   
   
   ### 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


[GitHub] [airflow] bbovenzi closed issue #23068: Grid view: "duration" shows 00:00:00

Posted by GitBox <gi...@apache.org>.
bbovenzi closed issue #23068: Grid view: "duration" shows 00:00:00
URL: https://github.com/apache/airflow/issues/23068


-- 
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


[GitHub] [airflow] MatrixManAtYrService commented on issue #23068: Grid view: "duration" shows 00:00:00 for task expansions

Posted by GitBox <gi...@apache.org>.
MatrixManAtYrService commented on issue #23068:
URL: https://github.com/apache/airflow/issues/23068#issuecomment-1101950149

   @bbovenzi mentioned that we could solve this in the UI by:
   
   > always basing the duration on the displayed end/start because sometimes the value we get from the webserver isn't consistent.
   
   But I filed an issue instead of recommending that he do that because maybe we should investigate why the webserver is providing 00:00:00 in the first place.


-- 
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


[GitHub] [airflow] uranusjr commented on issue #23068: Grid view: "duration" shows 00:00:00 for task expansions

Posted by GitBox <gi...@apache.org>.
uranusjr commented on issue #23068:
URL: https://github.com/apache/airflow/issues/23068#issuecomment-1102015181

   FOr clarification, does this only happen to sensors (or even only `TimedeltaSensor`), while a normal task show a correct duration when mapped?


-- 
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


[GitHub] [airflow] MatrixManAtYrService commented on issue #23068: Grid view: "duration" shows 00:00:00 for task expansions

Posted by GitBox <gi...@apache.org>.
MatrixManAtYrService commented on issue #23068:
URL: https://github.com/apache/airflow/issues/23068#issuecomment-1103368348

   I created one with a PythonOperator that just slept for 90 seconds, and I still get 00 for it, whether or not it's mapped.  So I guess the failure is more general than I thought.


-- 
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