Sha256: 335718edb2c003dc835de20544085d821ac8dc471da7336f8aa4da590b56d407
Contents?: true
Size: 1.58 KB
Versions: 1
Compression:
Stored size: 1.58 KB
Contents
<style> <%= File.read(File.join(view_path, 'assets', 'styles.css')) %> </style> <header class="row"> <div class="col-md-5"> <h3>Recurring Job: <%= @worker.name %></h3> </div> </header> <div class="container"> <div class="row"> <%= erb File.read(File.join(view_path, '_worker_nav.erb')) %> <div class="col-md-9"> <table class="table table-striped table-bordered table-hover table-white table-sidetiq"> <thead> <th style="width: 10%">Status</th> <th style="width: 20%">Timestamp</th> <th style="width: 10%">Runtime</th> <th>Details</th> </thead> <% @history.each do |entry| %> <% entry = Sidekiq.load_json(entry).symbolize_keys %> <% runtime = entry[:runtime]&.round(3) || "N/A" %> <tr class="<%= 'error' if entry[:status] == 'failure' %>"> <td><%= entry[:status].capitalize %></td> <td><%= Time.parse(entry[:timestamp]).strftime("%m/%d/%Y %I:%M:%S%p") %></td> <td><%= runtime %> s</td> <td> <% if entry[:status] == 'failure' %> <a class="backtrace" href="#" onclick="$(this).next().toggle(); return false"> <%= entry[:exception] %>: <%= entry[:error] %> </a> <div class="backtrace"> <pre> <%= entry[:backtrace].join("<br />") %> </pre> </div> <% end %> <p> <span>Node: <%= entry[:node] %></span> </p> </td> </tr> <% end %> </table> </div> </div> </div> <br />
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sidetiq-0.7.2 | lib/sidetiq/views/history.erb |