lib/sidekiq/web/helpers.rb in sidekiq-6.4.1 vs lib/sidekiq/web/helpers.rb in sidekiq-6.4.2
- old
+ new
@@ -138,12 +138,12 @@
def sort_direction_label
params[:direction] == "asc" ? "↑" : "↓"
end
- def workers
- @workers ||= Sidekiq::Workers.new
+ def workset
+ @work ||= Sidekiq::WorkSet.new
end
def processes
@processes ||= Sidekiq::ProcessSet.new
end
@@ -173,10 +173,10 @@
def current_path
@current_path ||= request.path_info.gsub(/^\//, "")
end
def current_status
- workers.size == 0 ? "idle" : "active"
+ workset.size == 0 ? "idle" : "active"
end
def relative_time(time)
stamp = time.getutc.iso8601
%(<time class="ltr" dir="ltr" title="#{stamp}" datetime="#{stamp}">#{time}</time>)