diff --git a/app/models/modern_queue_dashboard/job_summary.rb b/app/models/modern_queue_dashboard/job_summary.rb index 4ddce16..28aae7e 100644 --- a/app/models/modern_queue_dashboard/job_summary.rb +++ b/app/models/modern_queue_dashboard/job_summary.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module ModernQueueDashboard - JobStat = Struct.new(:id, :class_name, :queue_name, :arguments, :created_at, :status, :error, :exception_class, :backtrace, keyword_init: true) + JobStat = Struct.new(:id, :class_name, :queue_name, :arguments, :created_at, :status, :error, :exception_class, :backtrace, :finished_at, keyword_init: true) # Collection class for JobStat objects class JobStatCollection @@ -186,6 +186,7 @@ def job_to_stat(job) queue_name: job.queue_name, arguments: arguments_display, created_at: job.created_at, + finished_at: job.finished_at, status: status, error: raw_error, exception_class: nil, diff --git a/app/views/modern_queue_dashboard/jobs/show.html.erb b/app/views/modern_queue_dashboard/jobs/show.html.erb index c3d927f..21ed1d5 100644 --- a/app/views/modern_queue_dashboard/jobs/show.html.erb +++ b/app/views/modern_queue_dashboard/jobs/show.html.erb @@ -42,6 +42,12 @@
Created At
<%= @job_stat.created_at.strftime('%Y-%m-%d %H:%M:%S') %>
+ <% if @job_stat.finished_at %> +Finished At
+<%= @job_stat.finished_at.strftime('%Y-%m-%d %H:%M:%S') %>
+