<%= t('Lock information') %> <%= t('GoBack') %>

<% if @lock.info.none? %>

No Lock Information Available

To use it turn the following setting on: SidekiqUniqueJobs.config.lock_info = true

<% else %>
Information about lock
<%= t('Worker') %> <%= @lock.info["worker"] %>
<%= t('Queue') %> <%= @lock.info["queue"] %>
<%= t('Limit') %> <%= @lock.info["limit"] %>
<%= t('TTL') %> <%= @lock.info["ttl"] %>
<%= t('Timeout') %> <%= @lock.info["timeout"] %>
<%= t('Args') %>
<%= display_lock_args(@lock.info["lock_args"], nil) %>
<% end %>
<% @lock.locked_jids(with_values: true).each do |job_id, time| %> <% end %>
Digest: <%= @lock.key %>
<%= t('Locked JIDs') %> <%= t('Since') %>
<%= job_id %> <%= safe_relative_time(time.to_f) %>
<%= csrf_tag %>
<% if @lock.changelog.count.positive? %> <% @lock.changelogs.each do |entry| %> <% end %>
Changelogs
<%= t('At') %> <%= t('JID') %> <%= t('Message') %> <%= t('Script') %>
<%= safe_relative_time(entry["time"].to_f) %> <%= entry["job_id"] %> <%= entry["message"] %> <%= entry["script"] %>
<% end %>
<%= csrf_tag %> <%= t('GoBack') %>