pierrejeambrun commented on issue #28556: URL: https://github.com/apache/airflow/issues/28556#issuecomment-1374903312
Hello @alejandrofm, Just assigned you :) You can start looking at the file `airflow/www/views.py`, the class `DagRunModelView`. Duration is not a db column, so it cannot be treated in the same way as other columns. One way to achieve this would be to add a column_property/hybrid_property (preferably hybrid) to the model so it is reconstructed at query time. Then from the application point of view, it would just behave like any other columns. Maybe others will have a better way of achieving this. > Note: For task instance we also persist to the db the duration. (on top of start_date and end_date not sure why, it seems a bit redundant, but we could do something similar as well) -- 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-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org