From e75afabac7812d0210042547d5d4237ae7c087a5 Mon Sep 17 00:00:00 2001 From: Gregor Billing Date: Sat, 9 Sep 2023 10:47:46 +0200 Subject: [PATCH] Fix more typos in cronjob bar template --- WcaOnRails/app/jobs/wca_cronjob.rb | 2 +- WcaOnRails/app/views/admin/_cronjob_status_panel.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WcaOnRails/app/jobs/wca_cronjob.rb b/WcaOnRails/app/jobs/wca_cronjob.rb index f7536c6f57..9028b0ef38 100644 --- a/WcaOnRails/app/jobs/wca_cronjob.rb +++ b/WcaOnRails/app/jobs/wca_cronjob.rb @@ -77,7 +77,7 @@ class WcaCronjob < ApplicationJob end class << self - delegate :in_progress?, :scheduled?, :scheduled_at, :finished?, :last_run_successful?, :last_error_message, to: :cronjob_statistics + delegate :in_progress?, :scheduled?, :enqueued_at, :finished?, :last_run_successful?, :last_error_message, to: :cronjob_statistics def cronjob_statistics CronjobStatistic.find_or_create_by!(name: self.name) diff --git a/WcaOnRails/app/views/admin/_cronjob_status_panel.html.erb b/WcaOnRails/app/views/admin/_cronjob_status_panel.html.erb index dea1118324..7e2319245e 100644 --- a/WcaOnRails/app/views/admin/_cronjob_status_panel.html.erb +++ b/WcaOnRails/app/views/admin/_cronjob_status_panel.html.erb @@ -9,7 +9,7 @@ <%= alert :warning, cronjob.reason_not_to_run %> <% else %> <% if cronjob.scheduled? %> - <%= alert :info, "The job has been scheduled #{time_ago_in_words cronjob.scheduled_at}, but it hasn't been picked up by the job handler yet. Please come back later." %> + <%= alert :info, "The job has been scheduled #{time_ago_in_words cronjob.enqueued_at} ago, but it hasn't been picked up by the job handler yet. Please come back later." %> <% elsif cronjob.in_progress? %> <%= alert :info, "The job is running. Thanks for checking =)" %> <% elsif cronjob.finished? %>