sidekiq 4.2.10 → 5.2.10

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 (75) hide show
  1. checksums.yaml +5 -5
  2. data/.circleci/config.yml +61 -0
  3. data/.github/issue_template.md +3 -1
  4. data/.gitignore +3 -0
  5. data/.travis.yml +6 -13
  6. data/5.0-Upgrade.md +56 -0
  7. data/COMM-LICENSE +12 -10
  8. data/Changes.md +177 -1
  9. data/Ent-Changes.md +67 -2
  10. data/Gemfile +12 -22
  11. data/LICENSE +1 -1
  12. data/Pro-4.0-Upgrade.md +35 -0
  13. data/Pro-Changes.md +133 -2
  14. data/README.md +8 -6
  15. data/Rakefile +2 -5
  16. data/bin/sidekiqctl +13 -92
  17. data/bin/sidekiqload +5 -10
  18. data/lib/generators/sidekiq/templates/worker_spec.rb.erb +1 -1
  19. data/lib/sidekiq/api.rb +148 -58
  20. data/lib/sidekiq/cli.rb +120 -81
  21. data/lib/sidekiq/client.rb +25 -18
  22. data/lib/sidekiq/core_ext.rb +1 -119
  23. data/lib/sidekiq/ctl.rb +221 -0
  24. data/lib/sidekiq/delay.rb +42 -0
  25. data/lib/sidekiq/exception_handler.rb +2 -4
  26. data/lib/sidekiq/extensions/generic_proxy.rb +7 -1
  27. data/lib/sidekiq/fetch.rb +1 -1
  28. data/lib/sidekiq/job_logger.rb +25 -0
  29. data/lib/sidekiq/job_retry.rb +262 -0
  30. data/lib/sidekiq/launcher.rb +20 -20
  31. data/lib/sidekiq/logging.rb +18 -2
  32. data/lib/sidekiq/manager.rb +5 -6
  33. data/lib/sidekiq/middleware/server/active_record.rb +10 -0
  34. data/lib/sidekiq/processor.rb +126 -48
  35. data/lib/sidekiq/rails.rb +8 -73
  36. data/lib/sidekiq/redis_connection.rb +43 -5
  37. data/lib/sidekiq/scheduled.rb +35 -8
  38. data/lib/sidekiq/testing.rb +16 -7
  39. data/lib/sidekiq/util.rb +5 -2
  40. data/lib/sidekiq/version.rb +1 -1
  41. data/lib/sidekiq/web/action.rb +3 -7
  42. data/lib/sidekiq/web/application.rb +37 -17
  43. data/lib/sidekiq/web/helpers.rb +69 -22
  44. data/lib/sidekiq/web/router.rb +10 -10
  45. data/lib/sidekiq/web.rb +4 -4
  46. data/lib/sidekiq/worker.rb +118 -19
  47. data/lib/sidekiq.rb +27 -27
  48. data/sidekiq.gemspec +6 -17
  49. data/web/assets/javascripts/application.js +0 -0
  50. data/web/assets/javascripts/dashboard.js +32 -17
  51. data/web/assets/stylesheets/application-rtl.css +246 -0
  52. data/web/assets/stylesheets/application.css +371 -6
  53. data/web/assets/stylesheets/bootstrap-rtl.min.css +9 -0
  54. data/web/assets/stylesheets/bootstrap.css +2 -2
  55. data/web/locales/ar.yml +81 -0
  56. data/web/locales/en.yml +2 -0
  57. data/web/locales/es.yml +4 -3
  58. data/web/locales/fa.yml +1 -0
  59. data/web/locales/he.yml +79 -0
  60. data/web/locales/ja.yml +5 -3
  61. data/web/locales/ur.yml +80 -0
  62. data/web/views/_footer.erb +5 -2
  63. data/web/views/_nav.erb +4 -18
  64. data/web/views/_paging.erb +1 -1
  65. data/web/views/busy.erb +9 -5
  66. data/web/views/dashboard.erb +1 -1
  67. data/web/views/layout.erb +11 -2
  68. data/web/views/morgue.erb +4 -4
  69. data/web/views/queue.erb +8 -7
  70. data/web/views/queues.erb +2 -0
  71. data/web/views/retries.erb +9 -5
  72. data/web/views/scheduled.erb +2 -2
  73. metadata +30 -159
  74. data/lib/sidekiq/middleware/server/logging.rb +0 -31
  75. data/lib/sidekiq/middleware/server/retry_jobs.rb +0 -205
@@ -0,0 +1,246 @@
1
+ .navbar-right {
2
+ float: left !important;
3
+ }
4
+
5
+ footer .edits {
6
+ margin-right: unset;
7
+ margin-left: 40px;
8
+ }
9
+
10
+ .summary_bar .status {
11
+ margin-left: unset;
12
+ margin-right: 10px;
13
+ }
14
+ @media (max-width: 767px) and (min-width: 400px) {
15
+ .summary_bar ul .desc {
16
+ text-align: right;
17
+ }
18
+ .summary_bar ul .count {
19
+ text-align: left;
20
+ }
21
+ }
22
+ @media (max-width: 979px) and (min-width: 768px) {
23
+ }
24
+ .summary_bar ul .count {
25
+ float: left;
26
+ }
27
+
28
+ form .btn {
29
+ margin-right: unset;
30
+ margin-left: 5px;
31
+ }
32
+
33
+ form .btn-group .btn {
34
+ margin-right: unset;
35
+ margin-left: 1px;
36
+ }
37
+
38
+ @media (max-width: 768px) {
39
+ .navbar.navbar-fixed-top ul {
40
+ margin-right: unset;
41
+ margin-left: -15px!important;
42
+ }
43
+ }
44
+
45
+ @media (width: 768px) {
46
+ .navbar .poll-wrapper {
47
+ margin: 4px 0 0 4px;
48
+ }
49
+
50
+ .navbar .dropdown-menu a {
51
+ text-align: right;
52
+ }
53
+ }
54
+
55
+ .navbar-footer .navbar ul.nav a.navbar-brand {
56
+ padding: 0 0 0 15px;
57
+ }
58
+
59
+ .navbar-fixed-bottom li {
60
+ margin-right: unset;
61
+ margin-left: 20px;
62
+ }
63
+
64
+ .status-active {
65
+ background-position: 100% 0;
66
+ }
67
+
68
+ .status-idle {
69
+ background-position: 100% -54px;
70
+ }
71
+
72
+ .stat {
73
+ float: right;
74
+ margin-right: unset;
75
+ margin-left: 20px;
76
+ }
77
+
78
+ .stat:last-child {
79
+ margin-left: 0;
80
+ }
81
+
82
+ @media (max-width: 767px) {
83
+ .stat {
84
+ float: right;
85
+ margin-right: unset;
86
+ margin-left: 10px;
87
+ text-align: right;
88
+ }
89
+ .stat h3{
90
+ float: left;
91
+ margin: 5px 5px 5px 10px;
92
+ }
93
+ .stat p{
94
+ font-size: 1em;
95
+ margin: 5px 10px 5px 5px;
96
+ }
97
+ }
98
+
99
+ /* Dashboard
100
+ ********************************** */
101
+ div.dashboard h3 {
102
+ float: right;
103
+ }
104
+
105
+ div.interval-slider {
106
+ float: left;
107
+ }
108
+
109
+ #realtime-legend,
110
+ #history-legend {
111
+ text-align: right;
112
+ float: left;
113
+ }
114
+ #realtime-legend .timestamp,
115
+ #history-legend .timestamp {
116
+ text-align: left;
117
+ }
118
+ #realtime-legend .line,
119
+ #history-legend .line {
120
+ margin: 0 20px 0 0;
121
+ }
122
+ #realtime-legend .swatch,
123
+ #history-legend .swatch {
124
+ margin: 0 0 0 8px;
125
+ }
126
+
127
+ /* Beacon
128
+ ********************************** */
129
+
130
+ .beacon .dot,
131
+ .beacon .ring {
132
+ right: 50%;
133
+ }
134
+
135
+ .beacon .dot {
136
+ margin: -5px -5px 0 0;
137
+ }
138
+
139
+ .beacon .ring {
140
+ margin: -14px -14px 0 0;
141
+ }
142
+
143
+ .history-heading {
144
+ padding-right: unset;
145
+ padding-left: 15px;
146
+ }
147
+
148
+ @media (max-width: 767px) {
149
+ .navbar.navbar-fixed-top ul {
150
+ margin-left: 0;
151
+ }
152
+
153
+ .navbar.navbar-fixed-top li {
154
+ margin-left: 0;
155
+ }
156
+
157
+ .navbar.navbar-fixed-bottom ul {
158
+ margin-left: 0;
159
+ }
160
+
161
+ .navbar.navbar-fixed-bottom li {
162
+ margin-left: 0;
163
+ }
164
+ }
165
+
166
+ @media (max-width: 500px) {
167
+ .navbar-footer .navbar ul.nav a.navbar-brand {
168
+ padding-right: unset;
169
+ padding-left: 5px;
170
+ }
171
+ }
172
+
173
+ /* Rickshaw */
174
+
175
+ .rickshaw_graph .detail .x_label.left {
176
+ right: 0
177
+ }
178
+ .rickshaw_graph .detail .x_label.right {
179
+ left: 0
180
+ }
181
+ .rickshaw_graph .detail .item.left {
182
+ right: 0
183
+ }
184
+ .rickshaw_graph .detail .item.right {
185
+ left: 0
186
+ }
187
+ .rickshaw_graph .detail .item.left:after {
188
+ left: 0;
189
+ right: -5px;
190
+ border-right-color: unset;
191
+ border-left-color: rgba(0, 0, 0, .8);
192
+ border-right-width: 0;
193
+ border-left-width: unset;
194
+ }
195
+ .rickshaw_graph .detail .item.right:after {
196
+ right: 0;
197
+ left: -5px;
198
+ border-left-color: unset;
199
+ border-right-color: rgba(0, 0, 0, .8);
200
+ border-left-width: 0;
201
+ border-right-width: unset;
202
+ }
203
+ .rickshaw_graph .detail .dot {
204
+ margin-right: -3px;
205
+ margin-left: unset;
206
+ }
207
+ .rickshaw_graph .x_tick {
208
+ border-left: unset;
209
+ border-right: 1px dotted rgba(0, 0, 0, .2);
210
+ }
211
+ .rickshaw_graph .x_tick .title {
212
+ margin-right: 3px;
213
+ margin-left: unset;
214
+ }
215
+ .rickshaw_annotation_timeline .annotation {
216
+ margin-right: -2px;
217
+ margin-left: unset;
218
+ }
219
+ .rickshaw_graph .annotation_line {
220
+ border-right: 2px solid rgba(0, 0, 0, .3);
221
+ border-left: unset;
222
+ }
223
+ .rickshaw_annotation_timeline .annotation .content {
224
+ left: unset;
225
+ right: -11px;
226
+ }
227
+ .rickshaw_graph .x_tick.glow .title,
228
+ .rickshaw_graph .y_ticks.glow text {
229
+ text-shadow: 1px 1px 0 rgba(255, 255, 255, .1), -1px -1px 0 rgba(255, 255, 255, .1), -1px 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1), 0 -1px 0 rgba(255, 255, 255, .1), -1px 0 0 rgba(255, 255, 255, .1), 1px 0 0 rgba(255, 255, 255, .1), 1px -1px 0 rgba(255, 255, 255, .1)
230
+ }
231
+ .rickshaw_graph .x_tick.inverse .title,
232
+ .rickshaw_graph .y_ticks.inverse text {
233
+ text-shadow: 1px 1px 0 rgba(0, 0, 0, .8), -1px -1px 0 rgba(0, 0, 0, .8), -1px 1px 0 rgba(0, 0, 0, .8), 0 1px 0 rgba(0, 0, 0, .8), 0 -1px 0 rgba(0, 0, 0, .8), -1px 0 0 rgba(0, 0, 0, .8), 1px 0 0 rgba(0, 0, 0, .8), 1px -1px 0 rgba(0, 0, 0, .8)
234
+ }
235
+ .rickshaw_legend .line {
236
+ padding-left: 15px;
237
+ padding-right: unset;
238
+ }
239
+ .rickshaw_legend .line .swatch {
240
+ margin-left: 3px;
241
+ margin-right: unset;
242
+ }
243
+ .rickshaw_legend .action {
244
+ margin-left: .2em;
245
+ margin-right: unset;
246
+ }