Add batch link, closes #5623
This commit is contained in:
parent
407d90d7ea
commit
8e75afc0dc
|
@ -2,6 +2,11 @@
|
|||
|
||||
[Sidekiq Changes](https://github.com/mperham/sidekiq/blob/main/Changes.md) | [Sidekiq Pro Changes](https://github.com/mperham/sidekiq/blob/main/Pro-Changes.md) | [Sidekiq Enterprise Changes](https://github.com/mperham/sidekiq/blob/main/Ent-Changes.md)
|
||||
|
||||
HEAD
|
||||
----------
|
||||
|
||||
- Add BID link on job_info page if job is part of a Batch [#5623]
|
||||
|
||||
7.0.1
|
||||
----------
|
||||
|
||||
|
|
|
@ -418,6 +418,10 @@ module Sidekiq
|
|||
self["jid"]
|
||||
end
|
||||
|
||||
def bid
|
||||
self["bid"]
|
||||
end
|
||||
|
||||
def enqueued_at
|
||||
self["enqueued_at"] ? Time.at(self["enqueued_at"]).utc : nil
|
||||
end
|
||||
|
|
|
@ -33,6 +33,14 @@
|
|||
<code><%= job.jid %></code>
|
||||
</td>
|
||||
</tr>
|
||||
<% if job.bid %>
|
||||
<tr>
|
||||
<th>BID</th>
|
||||
<td>
|
||||
<a href="<%= root_path %>batches/<%= job.bid %>"><%= job.bid %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
<tr>
|
||||
<th><%= t('CreatedAt') %></th>
|
||||
<td><%= relative_time(job.created_at) %></td>
|
||||
|
|
Loading…
Reference in New Issue