File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -2361,6 +2361,13 @@ def latest_run_date(self):
23612361 latest_run = self .pipelineruns .values ("run_start_date" ).first ()
23622362 return latest_run ["run_start_date" ]
23632363
2364+ @property
2365+ def latest_run_end_date (self ):
2366+ if not self .pipelineruns .exists ():
2367+ return
2368+ latest_run = self .pipelineruns .values ("run_end_date" ).first ()
2369+ return latest_run ["run_end_date" ]
2370+
23642371 @property
23652372 def next_run_date (self ):
23662373 if not self .is_active :
Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ <h1>Pipeline Dashboard</h1>
6464 < div class ="column is-one-eighth "> Active</ div >
6565 < div class ="column is-one-eighth "> Interval</ div >
6666 < div class ="column is-one-eighth "> Status</ div >
67- < div class ="column is-one-fifth "> Latest Run</ div >
68- < div class ="column is-one-fifth "> Next Run</ div >
67+ < div class ="column is-one-fifth "> Last Run End Time </ div >
68+ < div class ="column is-one-fifth "> Next Run Start </ div >
6969 </ div >
7070 </ div >
7171 </ th >
@@ -87,16 +87,14 @@ <h1>Pipeline Dashboard</h1>
8787 {% include "includes/job_status.html" with status=schedule.status %}
8888 </ span >
8989 </ div >
90- < div class ="column is-one-fifth has-text-grey "
91- title ="{{ schedule.latest_run_date }} ">
92- {% if schedule.latest_run_date %}
93- {{ schedule.latest_run_date|date:"Y-m-d h:i a T" }}
90+ < div class ="column is-one-fifth has-text-grey ">
91+ {% if schedule.latest_run_end_date %}
92+ {{ schedule.latest_run_end_date|date:"Y-m-d h:i a T" }}
9493 {% else %}
9594 N/A
9695 {% endif %}
9796 </ div >
98- < div class ="column is-one-fifth has-text-grey "
99- title ="{{ schedule.next_run_date }} ">
97+ < div class ="column is-one-fifth has-text-grey ">
10098 {{ schedule.next_run_date|date:"Y-m-d" }}
10199 </ div >
102100 </ div >
You can’t perform that action at this time.
0 commit comments