<% if jobs.present? %> <% jobs.each do |job| %> <% end %> <% else %> <% end %>
ActiveJob ID State Job Class Queue Scheduled At Executions Error ActiveJob Params  <%= tag.button "Toggle", type: "button", class: "btn btn-sm btn-outline-primary", role: "button", data: { bs_toggle: "collapse", bs_target: ".job-params" }, aria: { expanded: false, controls: jobs.map { |job| "##{dom_id(job, "params")}" }.join(" ") } %> Actions
<%= link_to job_path(job.id) do %> <%= job.id %> <% end %> <%= status_badge(job.status) %> <%= job.job_class %> <%= job.queue_name %> <%= relative_time(job.scheduled_at || job.created_at) %> <%= job.executions_count %> <%= truncate(job.recent_error, length: 1_000) %> <%= tag.button "Preview", type: "button", class: "btn btn-sm btn-outline-primary", role: "button", data: { bs_toggle: "collapse", bs_target: "##{dom_id(job, 'params')}" }, aria: { expanded: false, controls: dom_id(job, "params") } %> <%= tag.pre JSON.pretty_generate(job.serialized_params), id: dom_id(job, "params"), class: "collapse job-params" %>
<% job_reschedulable = job.status.in? [:scheduled, :retried, :queued] %> <%= button_to reschedule_job_path(job.id), method: :put, class: "btn btn-sm #{job_reschedulable ? 'btn-outline-primary' : 'btn-outline-secondary'}", form_class: "d-inline-block", disabled: !job_reschedulable, aria: { label: "Reschedule job" }, title: "Reschedule job", data: { confirm: "Confirm reschedule" } do %> <%= render "good_job/shared/icons/skip_forward" %> <% end %> <% job_discardable = job.status.in? [:scheduled, :retried, :queued] %> <%= button_to discard_job_path(job.id), method: :put, class: "btn btn-sm #{job_discardable ? 'btn-outline-primary' : 'btn-outline-secondary'}", form_class: "d-inline-block", disabled: !job_discardable, aria: { label: "Discard job" }, title: "Discard job", data: { confirm: "Confirm discard" } do %> <%= render "good_job/shared/icons/stop" %> <% end %> <%= button_to retry_job_path(job.id), method: :put, class: "btn btn-sm #{job.status == :discarded ? 'btn-outline-primary' : 'btn-outline-secondary'}", form_class: "d-inline-block", disabled: job.status != :discarded, aria: { label: "Retry job" }, title: "Retry job", data: { confirm: "Confirm retry" } do %> <%= render "good_job/shared/icons/arrow_clockwise" %> <% end %>
No jobs found.