2013-08-21 18:38:52 -04:00
|
|
|
<header class="row">
|
2013-10-01 00:43:24 -04:00
|
|
|
<div class="col-sm-5">
|
2013-08-21 18:38:52 -04:00
|
|
|
<h3><%= t('Retries') %></h3>
|
|
|
|
</div>
|
2013-11-10 15:39:14 -05:00
|
|
|
<% if @retries.size > 0 && @total_size > @count %>
|
|
|
|
<div class="col-sm-4">
|
2013-08-21 18:38:52 -04:00
|
|
|
<%= erb :_paging, :locals => { :url => "#{root_path}retries" } %>
|
2013-11-10 15:39:14 -05:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<%= filtering('retries') %>
|
2013-08-21 18:38:52 -04:00
|
|
|
</header>
|
|
|
|
|
|
|
|
<% if @retries.size > 0 %>
|
|
|
|
<form action="<%= root_path %>retries" method="post">
|
2015-07-06 18:52:41 -04:00
|
|
|
<%= csrf_tag %>
|
2015-05-13 19:48:17 -04:00
|
|
|
<div class="table_container">
|
|
|
|
<table class="table table-striped table-bordered table-white">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2016-07-29 10:09:17 -04:00
|
|
|
<th class="width" class="table-checkbox">
|
2015-05-13 19:48:17 -04:00
|
|
|
<label>
|
|
|
|
<input type="checkbox" class="check_all" />
|
|
|
|
</label>
|
|
|
|
</th>
|
|
|
|
<th><%= t('NextRetry') %></th>
|
|
|
|
<th><%= 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>
|
|
|
|
</div>
|
2013-10-01 00:43:24 -04:00
|
|
|
<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') %>" />
|
2014-07-28 16:42:06 -04:00
|
|
|
<input class="btn btn-danger btn-xs pull-left" type="submit" name="kill" value="<%= t('Kill') %>" />
|
2013-08-21 18:38:52 -04:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<form action="<%= root_path %>retries/all/delete" method="post">
|
2015-07-06 18:52:41 -04:00
|
|
|
<%= csrf_tag %>
|
2013-10-01 00:43:24 -04:00
|
|
|
<input class="btn btn-danger btn-xs pull-right" type="submit" name="delete" value="<%= t('DeleteAll') %>" data-confirm="<%= t('AreYouSure') %>" />
|
2013-08-21 18:38:52 -04:00
|
|
|
</form>
|
|
|
|
<form action="<%= root_path %>retries/all/retry" method="post">
|
2015-07-06 18:52:41 -04:00
|
|
|
<%= csrf_tag %>
|
2013-10-01 00:43:24 -04:00
|
|
|
<input class="btn btn-danger btn-xs pull-right" type="submit" name="retry" value="<%= t('RetryAll') %>" data-confirm="<%= t('AreYouSure') %>" />
|
2013-08-21 18:38:52 -04:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<% else %>
|
|
|
|
<div class="alert alert-success"><%= t('NoRetriesFound') %></div>
|
|
|
|
<% end %>
|