sidekiq 5.1.1 → 5.2.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sidekiq might be problematic. Click here for more details.

Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +5 -5
  3. data/Changes.md +39 -0
  4. data/Ent-Changes.md +11 -0
  5. data/Gemfile +9 -3
  6. data/LICENSE +1 -1
  7. data/Pro-Changes.md +30 -0
  8. data/lib/sidekiq/api.rb +59 -27
  9. data/lib/sidekiq/cli.rb +13 -6
  10. data/lib/sidekiq/client.rb +31 -30
  11. data/lib/sidekiq/delay.rb +1 -0
  12. data/lib/sidekiq/fetch.rb +1 -1
  13. data/lib/sidekiq/job_logger.rb +2 -1
  14. data/lib/sidekiq/job_retry.rb +7 -2
  15. data/lib/sidekiq/launcher.rb +17 -11
  16. data/lib/sidekiq/logging.rb +3 -3
  17. data/lib/sidekiq/manager.rb +0 -1
  18. data/lib/sidekiq/middleware/server/active_record.rb +2 -1
  19. data/lib/sidekiq/processor.rb +55 -11
  20. data/lib/sidekiq/rails.rb +4 -9
  21. data/lib/sidekiq/redis_connection.rb +10 -2
  22. data/lib/sidekiq/scheduled.rb +33 -4
  23. data/lib/sidekiq/testing.rb +4 -4
  24. data/lib/sidekiq/util.rb +1 -1
  25. data/lib/sidekiq/version.rb +1 -1
  26. data/lib/sidekiq/web/action.rb +1 -1
  27. data/lib/sidekiq/web/application.rb +24 -2
  28. data/lib/sidekiq/web/helpers.rb +4 -4
  29. data/lib/sidekiq/web/router.rb +10 -10
  30. data/lib/sidekiq/web.rb +4 -4
  31. data/lib/sidekiq/worker.rb +7 -7
  32. data/lib/sidekiq.rb +4 -5
  33. data/sidekiq.gemspec +3 -8
  34. data/web/assets/javascripts/application.js +0 -0
  35. data/web/assets/stylesheets/application.css +0 -0
  36. data/web/assets/stylesheets/bootstrap.css +2 -2
  37. data/web/locales/ar.yml +1 -0
  38. data/web/locales/en.yml +1 -0
  39. data/web/locales/es.yml +3 -3
  40. data/web/views/_footer.erb +3 -0
  41. data/web/views/layout.erb +1 -1
  42. data/web/views/queue.erb +1 -0
  43. data/web/views/retries.erb +4 -0
  44. metadata +4 -87
  45. data/lib/sidekiq/middleware/server/active_record_cache.rb +0 -11
data/web/views/queue.erb CHANGED
@@ -5,6 +5,7 @@
5
5
  <% if @queue.paused? %>
6
6
  <span class="label label-danger"><%= t('Paused') %></span>
7
7
  <% end %>
8
+ <span class="badge badge-secondary"><%= number_with_delimiter(@total_size) %></span>
8
9
  </h3>
9
10
  </div>
10
11
  <div class="col-sm-4 pull-right flip">
@@ -69,6 +69,10 @@
69
69
  <%= csrf_tag %>
70
70
  <input class="btn btn-danger btn-xs pull-right flip" type="submit" name="retry" value="<%= t('RetryAll') %>" data-confirm="<%= t('AreYouSure') %>" />
71
71
  </form>
72
+ <form action="<%= root_path %>retries/all/kill" method="post">
73
+ <%= csrf_tag %>
74
+ <input class="btn btn-danger btn-xs pull-right flip" type="submit" name="kill" value="<%= t('KillAll') %>" data-confirm="<%= t('AreYouSure') %>" />
75
+ </form>
72
76
  <% end %>
73
77
 
74
78
  <% else %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.1
4
+ version: 5.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Perham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-08 00:00:00.000000000 Z
11
+ date: 2018-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: '2.2'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 2.2.0
42
+ version: 2.2.2
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,21 +49,7 @@ dependencies:
49
49
  version: '2.2'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 2.2.0
53
- - !ruby/object:Gem::Dependency
54
- name: concurrent-ruby
55
- requirement: !ruby/object:Gem::Requirement
56
- requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '1.0'
60
- type: :runtime
61
- prerelease: false
62
- version_requirements: !ruby/object:Gem::Requirement
63
- requirements:
64
- - - "~>"
65
- - !ruby/object:Gem::Version
66
- version: '1.0'
52
+ version: 2.2.2
67
53
  - !ruby/object:Gem::Dependency
68
54
  name: rack-protection
69
55
  requirement: !ruby/object:Gem::Requirement
@@ -78,74 +64,6 @@ dependencies:
78
64
  - - ">="
79
65
  - !ruby/object:Gem::Version
80
66
  version: 1.5.0
81
- - !ruby/object:Gem::Dependency
82
- name: redis-namespace
83
- requirement: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - "~>"
86
- - !ruby/object:Gem::Version
87
- version: '1.5'
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: 1.5.2
91
- type: :development
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - "~>"
96
- - !ruby/object:Gem::Version
97
- version: '1.5'
98
- - - ">="
99
- - !ruby/object:Gem::Version
100
- version: 1.5.2
101
- - !ruby/object:Gem::Dependency
102
- name: minitest
103
- requirement: !ruby/object:Gem::Requirement
104
- requirements:
105
- - - "~>"
106
- - !ruby/object:Gem::Version
107
- version: '5.10'
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: 5.10.1
111
- type: :development
112
- prerelease: false
113
- version_requirements: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '5.10'
118
- - - ">="
119
- - !ruby/object:Gem::Version
120
- version: 5.10.1
121
- - !ruby/object:Gem::Dependency
122
- name: rake
123
- requirement: !ruby/object:Gem::Requirement
124
- requirements:
125
- - - "~>"
126
- - !ruby/object:Gem::Version
127
- version: '10.0'
128
- type: :development
129
- prerelease: false
130
- version_requirements: !ruby/object:Gem::Requirement
131
- requirements:
132
- - - "~>"
133
- - !ruby/object:Gem::Version
134
- version: '10.0'
135
- - !ruby/object:Gem::Dependency
136
- name: rails
137
- requirement: !ruby/object:Gem::Requirement
138
- requirements:
139
- - - ">="
140
- - !ruby/object:Gem::Version
141
- version: 3.2.0
142
- type: :development
143
- prerelease: false
144
- version_requirements: !ruby/object:Gem::Requirement
145
- requirements:
146
- - - ">="
147
- - !ruby/object:Gem::Version
148
- version: 3.2.0
149
67
  description: Simple, efficient background processing for Ruby.
150
68
  email:
151
69
  - mperham@gmail.com
@@ -201,7 +119,6 @@ files:
201
119
  - lib/sidekiq/middleware/chain.rb
202
120
  - lib/sidekiq/middleware/i18n.rb
203
121
  - lib/sidekiq/middleware/server/active_record.rb
204
- - lib/sidekiq/middleware/server/active_record_cache.rb
205
122
  - lib/sidekiq/paginator.rb
206
123
  - lib/sidekiq/processor.rb
207
124
  - lib/sidekiq/rails.rb
@@ -1,11 +0,0 @@
1
- module Sidekiq
2
- module Middleware
3
- module Server
4
- class ActiveRecordCache
5
- def call(*args, &block)
6
- ::ActiveRecord::Base.cache(&block)
7
- end
8
- end
9
- end
10
- end
11
- end