Skip to content

Commit

Permalink
Fix more typos in cronjob bar template
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorbg committed Sep 9, 2023
1 parent 38757a4 commit e75afab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WcaOnRails/app/jobs/wca_cronjob.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion WcaOnRails/app/views/admin/_cronjob_status_panel.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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? %>
Expand Down

0 comments on commit e75afab

Please sign in to comment.