Cron Schedules

Class
Schedule
Next scheduled
Last run
<%= tag.button type: "button", class: "btn btn-sm text-muted", role: "button", data: { bs_toggle: "collapse", bs_target: ".cron-entry-properties" }, aria: { expanded: false, controls: @cron_entries.map { |cron_entry| "##{dom_id(cron_entry, 'properties')}" }.join(" ") } do %> <%= render_icon "info" %> Inspect <% end %>
<% @cron_entries.each do |cron_entry| %>
<%= cron_entry.key %>
<%= cron_entry.description %>
<%= tag.span tag.code(cron_entry.job_class), class: "fs-5 mb-0" %>
<%= cron_entry.schedule %>
<%= relative_time cron_entry.next_at %>
<% if cron_entry.last_job.present? %> <%= link_to relative_time(cron_entry.last_at), cron_entry_path(cron_entry), title: "Job #{cron_entry.last_job.id}" %> <% end %>
<%= button_to enqueue_cron_entry_path(cron_entry.id), method: :post, class: "btn btn-sm btn-outline-primary", form_class: "d-inline-block", aria: { label: "Run cron entry now" }, title: "Run cron entry now", data: { confirm: "Confirm run cron entry now" } do %> <%= render "good_job/shared/icons/play" %> Run Now <% end %> <%= tag.button type: "button", class: "btn btn-sm text-muted", role: "button", title: "Inspect", data: { bs_toggle: "collapse", bs_target: "##{dom_id(cron_entry, 'properties')}" }, aria: { expanded: false, controls: dom_id(cron_entry, "properties") } do %> <%= render_icon "info" %> Inspect <% end %>
<%= tag.div id: dom_id(cron_entry, 'properties'), class: "collapse cron-entry-properties list-group-item collapse small bg-dark text-light" do %> <%= tag.pre JSON.pretty_generate(cron_entry.display_properties) %> <% end %> <% end %> <% if @cron_entries.empty? %>
No cron schedules found.
<% end %>