Key | Schedule | Properties <%= tag.button "Toggle", type: "button", class: "btn btn-sm btn-outline-primary", 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(" ") } %> | Description | Next scheduled | Last run | Actions | <% @cron_entries.each do |cron_entry| %>
---|---|---|---|---|---|---|
<%= cron_entry.key %> | <%= cron_entry.schedule %> | <%= tag.button("Inspect", type: "button", class: "btn btn-sm btn-outline-primary", role: "button", data: { bs_toggle: "collapse", bs_target: "##{dom_id(cron_entry, 'properties')}" }, aria: { expanded: false, controls: dom_id(cron_entry, 'properties') }) %> <%= tag.pre(JSON.pretty_generate(cron_entry.display_properties), id: dom_id(cron_entry, 'properties'), class: "collapse cron-entry-properties") %> | <%= cron_entry.description %> | <%= cron_entry.next_at %> | <% if cron_entry.last_job.present? %> <%= link_to 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" %> <% end %> |
No cron schedules found.