Sha256: 1a0bd5d1b7b831b3db360fd3f00ba3bab520ffdb8880e2aad2c612f9d58a20db

Contents?: true

Size: 1.96 KB

Versions: 11

Compression:

Stored size: 1.96 KB

Contents

<h5>Executions</h5>
<div class="card mb-4" data-live-poll-region="executions-table">
  <div class="list-group list-group-flush">
    <% executions.each do |execution| %>
      <%= tag.div id: dom_id(execution), class: "list-group-item py-3" do %>
        <div class="d-md-flex">
          <div class="flex-fill">
            <div class="small text-muted">
              #<%= execution.number %>:
              <%= tag.code link_to(execution.id, "##{dom_id(execution)}", class: "text-muted text-decoration-none") %>
            </div>
            <div class="d-flex gap-2 align-items-center text-muted mt-1">
              <%= status_badge execution.status %>
              <%= relative_time execution.last_status_at, include_seconds: true %>

              <% if execution.runtime_latency %>
                • <div><%= format_duration execution.runtime_latency %> runtime</div>
              <% end %>
              <% if execution.queue_latency %>
                • <div><%= format_duration execution.queue_latency %> in queue</div>
              <% end %>
            </div>
          </div>
          <div>
            <div class="mt-4 d-flex gap-2">
              <%= tag.button type: "button", class: "btn btn-sm btn-outline-primary", role: "button",
                data: { bs_toggle: "collapse", bs_target: "##{dom_id(execution, 'params')}" },
                aria: { expanded: false, controls: dom_id(execution, "params") } do %>
                Inspect
              <% end %>
            </div>
          </div>
        </div>
        <% if execution.error %>
          <div class="mt-3">
            <strong class="small">Error:</strong>
            <pre class="text-wrap text-break m-0"><%= execution.error %></pre>
          </div>
        <% end %>
        <div>
          <%= tag.pre JSON.pretty_generate(execution.serialized_params), id: dom_id(execution, "params"), class: "collapse bg-light card card-body p-3 my-3" %>
        </div>
      <% end %>
    <% end %>
  </div>
</div>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
good_job-3.0.2 app/views/good_job/jobs/_executions.erb
good_job-3.0.1 app/views/good_job/jobs/_executions.erb
good_job-3.0.0 app/views/good_job/jobs/_executions.erb
good_job-2.99.0 app/views/good_job/jobs/_executions.erb
good_job-2.17.1 app/views/good_job/jobs/_executions.erb
good_job-2.17.0 app/views/good_job/jobs/_executions.erb
good_job-2.16.1 engine/app/views/good_job/jobs/_executions.erb
good_job-2.16.0 engine/app/views/good_job/jobs/_executions.erb
good_job-2.15.2 engine/app/views/good_job/jobs/_executions.erb
good_job-2.15.1 engine/app/views/good_job/jobs/_executions.erb
good_job-2.15.0 engine/app/views/good_job/jobs/_executions.erb