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):
2361
2361
latest_run = self .pipelineruns .values ("run_start_date" ).first ()
2362
2362
return latest_run ["run_start_date" ]
2363
2363
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
+
2364
2371
@property
2365
2372
def next_run_date (self ):
2366
2373
if not self .is_active :
Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ <h1>Pipeline Dashboard</h1>
64
64
< div class ="column is-one-eighth "> Active</ div >
65
65
< div class ="column is-one-eighth "> Interval</ div >
66
66
< 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 >
69
69
</ div >
70
70
</ div >
71
71
</ th >
@@ -87,16 +87,14 @@ <h1>Pipeline Dashboard</h1>
87
87
{% include "includes/job_status.html" with status=schedule.status %}
88
88
</ span >
89
89
</ 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" }}
94
93
{% else %}
95
94
N/A
96
95
{% endif %}
97
96
</ 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 ">
100
98
{{ schedule.next_run_date|date:"Y-m-d" }}
101
99
</ div >
102
100
</ div >
You can’t perform that action at this time.
0 commit comments