mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Merge branch 'master' into dashboard
Conflicts: web/assets/stylesheets/application.css web/views/layout.slim
This commit is contained in:
commit
412ed9c703
7 changed files with 90 additions and 270 deletions
|
@ -1,4 +1,9 @@
|
|||
- Enable polling for every tab in Web UI
|
||||
2.6.0
|
||||
-----------
|
||||
|
||||
- Enable live polling for every section in Web UI
|
||||
- Add Stats API
|
||||
- Add Stats::History API
|
||||
|
||||
2.5.4
|
||||
-----------
|
||||
|
|
|
@ -54,16 +54,14 @@ module Sidekiq
|
|||
|
||||
Sidekiq.redis do |conn|
|
||||
processed_keys = conn.keys("stat:processed:*")
|
||||
|
||||
processed_keys.each do |key|
|
||||
conn.del(key) if key < "stat:processed:#{delete_before_date.to_s}"
|
||||
end
|
||||
earliest = "stat:processed:#{delete_before_date.to_s}"
|
||||
pkeys = processed_keys.select { |key| key < earliest }
|
||||
conn.del(pkeys) if pkeys.size > 0
|
||||
|
||||
failed_keys = conn.keys("stat:failed:*")
|
||||
|
||||
failed_keys.each do |key|
|
||||
conn.del(key) if key < "stat:failed:#{delete_before_date.to_s}"
|
||||
end
|
||||
earliest = "stat:failed:#{delete_before_date.to_s}"
|
||||
fkeys = failed_keys.select { |key| key < earliest }
|
||||
conn.del(fkeys) if fkeys.size > 0
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -75,6 +75,8 @@ module Sidekiq
|
|||
logger.info "Running in #{RUBY_DESCRIPTION}"
|
||||
logger.info Sidekiq::LICENSE
|
||||
|
||||
Sidekiq::Stats::History.cleanup
|
||||
|
||||
@manager = Sidekiq::Manager.new(options)
|
||||
poller = Sidekiq::Scheduled::Poller.new
|
||||
begin
|
||||
|
|
File diff suppressed because one or more lines are too long
2
web/assets/stylesheets/bootstrap.css
vendored
2
web/assets/stylesheets/bootstrap.css
vendored
File diff suppressed because one or more lines are too long
|
@ -1,17 +1,12 @@
|
|||
.navbar-inner
|
||||
.container
|
||||
a.btn.btn-navbar data-toggle="collapse" data-target=".nav-collapse"
|
||||
span.icon-bar
|
||||
span.icon-bar
|
||||
span.icon-bar
|
||||
a.brand href='#{{root_path}}'
|
||||
= Sidekiq::NAME
|
||||
div.nav-collapse
|
||||
ul.nav
|
||||
- tabs.each do |title, url|
|
||||
- if url == ''
|
||||
li class="#{(current_path == url) ? 'active':''}"
|
||||
a href='#{{root_path}}#{{url}}' #{title}
|
||||
- else
|
||||
li class="#{(current_path =~ Regexp.new(url)) ? 'active':''}"
|
||||
a href='#{{root_path}}#{{url}}' #{title}
|
||||
ul.nav
|
||||
- tabs.each do |title, url|
|
||||
- if url == ''
|
||||
li class="#{(current_path == url) ? 'active':''}"
|
||||
a href='#{{root_path}}#{{url}}' #{title}
|
||||
- else
|
||||
li class="#{(current_path =~ Regexp.new(url)) ? 'active':''}"
|
||||
a href='#{{root_path}}#{{url}}' #{title}
|
||||
|
|
|
@ -2,6 +2,7 @@ doctype html
|
|||
html
|
||||
head
|
||||
title= Sidekiq::NAME
|
||||
meta name="viewport" content="width=device-width,initial-scale=1.0"
|
||||
link href='#{{root_path}}stylesheets/bootstrap.css' media='screen' rel='stylesheet' type='text/css'
|
||||
link href='#{{root_path}}stylesheets/application.css' media='screen' rel='stylesheet' type='text/css'
|
||||
script type="text/javascript" src="#{{root_path}}javascripts/application.js"
|
||||
|
@ -16,14 +17,13 @@ html
|
|||
.navbar.navbar-fixed-bottom.navbar-inverse
|
||||
.navbar-inner
|
||||
.container
|
||||
.nav-collapse
|
||||
ul.nav
|
||||
li
|
||||
p.navbar-text style="color:white;" Sidekiq v#{Sidekiq::VERSION}
|
||||
li
|
||||
p.navbar-text Redis: #{location}
|
||||
li
|
||||
p.navbar-text Time: #{Time.now.utc.strftime('%H:%M:%S UTC')}
|
||||
ul.nav
|
||||
li
|
||||
p.navbar-text style="color:white;" Sidekiq v#{Sidekiq::VERSION}
|
||||
li
|
||||
p.navbar-text Redis: #{location}
|
||||
li
|
||||
p.navbar-text Time: #{Time.now.utc.strftime('%H:%M:%S UTC')}
|
||||
|
||||
#page
|
||||
.container
|
||||
|
@ -41,4 +41,4 @@ html
|
|||
a#live-poll.btn.btn-block.btn-primary href='#{{root_path}}#{{current_path}}?poll=true' Live Poll
|
||||
|
||||
.span10
|
||||
== yield
|
||||
== yield
|
||||
|
|
Loading…
Add table
Reference in a new issue