% highlight = local_assigns[:highlight] || local_assigns[:highlight_ids]&.include?(job.id) %>
<%= job.class_name %>
<% if job.arguments["arguments"].present? %><% job.arguments["arguments"].each do |argument| %> <%= truncate(JSON.pretty_generate(argument), length: 60) %> <% end %>
<% end %> <% end %>Running for <%= time_ago_in_words(job.claimed_execution.created_at, include_seconds: true) %> <% if job.claimed_execution.process %> by <%= process_kind_badge(job.claimed_execution.process.kind) %> <%= link_to "##{job.claimed_execution.process.id}", process_path(job.claimed_execution.process), class: "link" %> <% end %>
<% elsif job.success? || job.retried? %>
<%= job.retried? ? "Failed" : "Finished" %> at <%= job.finished_at %>
<%= time_ago_in_words(job.scheduled_at, include_seconds: true) %> ago
<%= icon_triangle_alert class: "inline-block size-4 text-red-600 dark:text-red-500 -translate-y-px mr-0.5" %> <%= job.error_message %>
<%= form_with url: retry_job_path(job), method: :post do %> <% end %>Pending for <%= time_ago_in_words(job.scheduled_at, include_seconds: true) %>
<% end %>