mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
2513884aa0
No more massive numbers of Sidekiq::Extensions::DelayedClass jobs! Now you’ll see the underlying Class.method call instead so the UI is much more intuitive. This might also be necessary for ActiveJob.
68 lines
2.5 KiB
Text
68 lines
2.5 KiB
Text
<header class="row">
|
|
<div class="col-sm-5">
|
|
<h3><%= t('Retries') %></h3>
|
|
</div>
|
|
<% if @retries.size > 0 && @total_size > @count %>
|
|
<div class="col-sm-4">
|
|
<%= erb :_paging, :locals => { :url => "#{root_path}retries" } %>
|
|
</div>
|
|
<% end %>
|
|
<%= filtering('retries') %>
|
|
</header>
|
|
|
|
<% if @retries.size > 0 %>
|
|
<form action="<%= root_path %>retries" method="post">
|
|
<table class="table table-striped table-bordered table-white">
|
|
<thead>
|
|
<tr>
|
|
<th width="20px" class="table-checkbox">
|
|
<label>
|
|
<input type="checkbox" class="check_all" />
|
|
</label>
|
|
</th>
|
|
<th width="25%"><%= t('NextRetry') %></th>
|
|
<th width="11%"><%= t('RetryCount') %></th>
|
|
<th><%= t('Queue') %></th>
|
|
<th><%= t('Job') %></th>
|
|
<th><%= t('Arguments') %></th>
|
|
<th><%= t('Error') %></th>
|
|
</tr>
|
|
</thead>
|
|
<% @retries.each do |entry| %>
|
|
<tr>
|
|
<td class="table-checkbox">
|
|
<label>
|
|
<input type='checkbox' name='key[]' value='<%= job_params(entry.item, entry.score) %>' />
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<a href="<%= root_path %>retries/<%= job_params(entry.item, entry.score) %>"><%= relative_time(entry.at) %></a>
|
|
</td>
|
|
<td><%= entry['retry_count'] %></td>
|
|
<td>
|
|
<a href="<%= root_path %>queues/<%= entry.queue %>"><%= entry.queue %></a>
|
|
</td>
|
|
<td><%= entry.display_class %></td>
|
|
<td>
|
|
<div class="args"><%= display_args(entry.display_args) %></div>
|
|
</td>
|
|
<td>
|
|
<div><%= h truncate("#{entry['error_class']}: #{entry['error_message']}", 200) %></div>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
<input class="btn btn-primary btn-xs pull-left" type="submit" name="retry" value="<%= t('RetryNow') %>" />
|
|
<input class="btn btn-danger btn-xs pull-left" type="submit" name="delete" value="<%= t('Delete') %>" />
|
|
</form>
|
|
|
|
<form action="<%= root_path %>retries/all/delete" method="post">
|
|
<input class="btn btn-danger btn-xs pull-right" type="submit" name="delete" value="<%= t('DeleteAll') %>" data-confirm="<%= t('AreYouSure') %>" />
|
|
</form>
|
|
<form action="<%= root_path %>retries/all/retry" method="post">
|
|
<input class="btn btn-danger btn-xs pull-right" type="submit" name="retry" value="<%= t('RetryAll') %>" data-confirm="<%= t('AreYouSure') %>" />
|
|
</form>
|
|
|
|
<% else %>
|
|
<div class="alert alert-success"><%= t('NoRetriesFound') %></div>
|
|
<% end %>
|