sidekiq 2.4.0 → 2.5.0
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.
- data/.gitignore +1 -0
- data/Changes.md +11 -0
- data/Gemfile +6 -0
- data/lib/sidekiq.rb +1 -0
- data/lib/sidekiq/api.rb +184 -0
- data/lib/sidekiq/cli.rb +3 -2
- data/lib/sidekiq/client.rb +16 -10
- data/lib/sidekiq/core_ext.rb +30 -0
- data/lib/sidekiq/exception_handler.rb +9 -0
- data/lib/sidekiq/processor.rb +1 -1
- data/lib/sidekiq/testing/inline.rb +3 -3
- data/lib/sidekiq/util.rb +1 -11
- data/lib/sidekiq/version.rb +1 -1
- data/lib/sidekiq/web.rb +49 -1
- data/lib/sidekiq/worker.rb +3 -9
- data/sidekiq.gemspec +3 -0
- data/test/config.yml +1 -1
- data/test/test_api.rb +75 -0
- data/test/test_cli.rb +6 -1
- data/test/test_exception_handler.rb +16 -0
- data/test/test_testing_inline.rb +3 -3
- data/test/test_web.rb +27 -6
- data/web/assets/images/bootstrap/glyphicons-halflings-white.png +0 -0
- data/web/assets/images/bootstrap/glyphicons-halflings.png +0 -0
- data/web/assets/images/logo.png +0 -0
- data/web/assets/images/status-sd8051fd480.png +0 -0
- data/web/assets/images/status/active.png +0 -0
- data/web/assets/images/status/idle.png +0 -0
- data/web/assets/javascripts/application.js +44 -16
- data/web/assets/javascripts/vendor/bootstrap.js +0 -0
- data/web/assets/javascripts/vendor/jquery.js +0 -0
- data/web/assets/javascripts/vendor/jquery.timeago.js +0 -0
- data/web/assets/stylesheets/application.css +1 -3
- data/web/assets/stylesheets/layout.css +0 -0
- data/web/assets/stylesheets/partials/_base.scss +116 -0
- data/web/assets/stylesheets/partials/_colors.scss +46 -0
- data/web/assets/stylesheets/partials/_fonts.scss +3 -0
- data/web/assets/stylesheets/partials/_h5bp.scss +293 -0
- data/web/assets/stylesheets/partials/_layout.scss +197 -0
- data/web/assets/stylesheets/partials/_navbar.scss +100 -0
- data/web/assets/stylesheets/partials/_normalize.scss +504 -0
- data/web/assets/stylesheets/partials/_prettify.css +30 -0
- data/web/assets/stylesheets/partials/_variables.scss +28 -0
- data/web/assets/stylesheets/public.scss +74 -0
- data/web/assets/stylesheets/style.scss +69 -0
- data/web/assets/stylesheets/vendor/bootstrap-responsive.css +0 -0
- data/web/assets/stylesheets/vendor/bootstrap.css +0 -0
- data/web/assets/stylesheets/vendors.scss +2 -0
- data/web/views/_nav.slim +13 -0
- data/web/views/_paging.slim +0 -0
- data/web/views/_status.slim +3 -0
- data/web/views/_summary.slim +19 -8
- data/web/views/_workers.slim +12 -5
- data/web/views/index.slim +8 -9
- data/web/views/layout.slim +27 -19
- data/web/views/poll.slim +1 -0
- data/web/views/queue.slim +22 -9
- data/web/views/queues.slim +7 -7
- data/web/views/retries.slim +13 -10
- data/web/views/retry.slim +5 -5
- data/web/views/scheduled.slim +13 -10
- metadata +71 -2
data/web/views/retry.slim
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
header
|
2
|
-
|
2
|
+
h3 Job
|
3
3
|
|
4
4
|
- @retries.each do |msg|
|
5
|
-
table class="table table-
|
5
|
+
table class="retry table table-bordered table-striped"
|
6
6
|
tbody
|
7
7
|
tr
|
8
8
|
th Queue
|
@@ -31,8 +31,8 @@ header
|
|
31
31
|
th Next Retry
|
32
32
|
td== relative_time(Time.at(@score))
|
33
33
|
|
34
|
-
|
35
|
-
table class="table table-
|
34
|
+
h3 Error
|
35
|
+
table class="error table table-bordered table-striped"
|
36
36
|
tbody
|
37
37
|
tr
|
38
38
|
th Error Class
|
@@ -47,6 +47,6 @@ header
|
|
47
47
|
td
|
48
48
|
code== msg['error_backtrace'].join("<br/>")
|
49
49
|
form.form-horizontal action="#{root_path}retries/#{@score}" method="post"
|
50
|
-
a.btn href="#{root_path}retries"
|
50
|
+
a.btn href="#{root_path}retries" ← Back
|
51
51
|
input.btn.btn-primary type="submit" name="retry" value="Retry Now"
|
52
52
|
input.btn.btn-danger type="submit" name="delete" value="Delete"
|
data/web/views/scheduled.slim
CHANGED
@@ -1,15 +1,19 @@
|
|
1
|
-
|
1
|
+
header.row
|
2
|
+
.span5
|
3
|
+
h3 Scheduled Jobs
|
4
|
+
.span4
|
5
|
+
- if @scheduled.size > 0
|
6
|
+
== slim :_paging, :locals => { :url => "#{root_path}scheduled" }
|
2
7
|
|
3
8
|
- if @scheduled.size > 0
|
4
|
-
== slim :_paging, :locals => { :url => "#{root_path}scheduled" }
|
5
9
|
|
6
10
|
form action="#{root_path}scheduled" method="post"
|
7
|
-
table class="table table-striped table-bordered"
|
8
|
-
|
9
|
-
th
|
11
|
+
table class="table table-striped table-bordered table-white"
|
12
|
+
thead
|
13
|
+
th width="20px"
|
10
14
|
input type="checkbox" class="check_all"
|
11
|
-
th When
|
12
|
-
th Queue
|
15
|
+
th width="25%" When
|
16
|
+
th width="10%" Queue
|
13
17
|
th Worker
|
14
18
|
th Args
|
15
19
|
- @scheduled.each do |(msg, score)|
|
@@ -21,7 +25,6 @@ h1 Scheduled Jobs
|
|
21
25
|
a href="#{root_path}queues/#{msg['queue']}" #{msg['queue']}
|
22
26
|
td= msg['class']
|
23
27
|
td= display_args(msg['args'])
|
24
|
-
input.btn.btn-danger type="submit" name="delete" value="Delete"
|
28
|
+
input.btn.btn-danger.pull-right type="submit" name="delete" value="Delete"
|
25
29
|
- else
|
26
|
-
|
27
|
-
a href="#{root_path}" Back
|
30
|
+
.alert.alert-success No scheduled jobs were found
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: redis
|
@@ -91,6 +91,54 @@ dependencies:
|
|
91
91
|
- - ~>
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '1'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: sprockets-sass
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :runtime
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: sass
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: compass
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :runtime
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
94
142
|
- !ruby/object:Gem::Dependency
|
95
143
|
name: minitest
|
96
144
|
requirement: !ruby/object:Gem::Requirement
|
@@ -238,6 +286,7 @@ files:
|
|
238
286
|
- examples/sinkiq.rb
|
239
287
|
- examples/web-ui.png
|
240
288
|
- lib/sidekiq.rb
|
289
|
+
- lib/sidekiq/api.rb
|
241
290
|
- lib/sidekiq/capistrano.rb
|
242
291
|
- lib/sidekiq/cli.rb
|
243
292
|
- lib/sidekiq/client.rb
|
@@ -272,6 +321,7 @@ files:
|
|
272
321
|
- test/config.yml
|
273
322
|
- test/fake_env.rb
|
274
323
|
- test/helper.rb
|
324
|
+
- test/test_api.rb
|
275
325
|
- test/test_cli.rb
|
276
326
|
- test/test_client.rb
|
277
327
|
- test/test_exception_handler.rb
|
@@ -288,15 +338,33 @@ files:
|
|
288
338
|
- test/test_web.rb
|
289
339
|
- web/assets/images/bootstrap/glyphicons-halflings-white.png
|
290
340
|
- web/assets/images/bootstrap/glyphicons-halflings.png
|
341
|
+
- web/assets/images/logo.png
|
342
|
+
- web/assets/images/status-sd8051fd480.png
|
343
|
+
- web/assets/images/status/active.png
|
344
|
+
- web/assets/images/status/idle.png
|
291
345
|
- web/assets/javascripts/application.js
|
292
346
|
- web/assets/javascripts/vendor/bootstrap.js
|
293
347
|
- web/assets/javascripts/vendor/jquery.js
|
294
348
|
- web/assets/javascripts/vendor/jquery.timeago.js
|
295
349
|
- web/assets/stylesheets/application.css
|
296
350
|
- web/assets/stylesheets/layout.css
|
351
|
+
- web/assets/stylesheets/partials/_base.scss
|
352
|
+
- web/assets/stylesheets/partials/_colors.scss
|
353
|
+
- web/assets/stylesheets/partials/_fonts.scss
|
354
|
+
- web/assets/stylesheets/partials/_h5bp.scss
|
355
|
+
- web/assets/stylesheets/partials/_layout.scss
|
356
|
+
- web/assets/stylesheets/partials/_navbar.scss
|
357
|
+
- web/assets/stylesheets/partials/_normalize.scss
|
358
|
+
- web/assets/stylesheets/partials/_prettify.css
|
359
|
+
- web/assets/stylesheets/partials/_variables.scss
|
360
|
+
- web/assets/stylesheets/public.scss
|
361
|
+
- web/assets/stylesheets/style.scss
|
297
362
|
- web/assets/stylesheets/vendor/bootstrap-responsive.css
|
298
363
|
- web/assets/stylesheets/vendor/bootstrap.css
|
364
|
+
- web/assets/stylesheets/vendors.scss
|
365
|
+
- web/views/_nav.slim
|
299
366
|
- web/views/_paging.slim
|
367
|
+
- web/views/_status.slim
|
300
368
|
- web/views/_summary.slim
|
301
369
|
- web/views/_workers.slim
|
302
370
|
- web/views/index.slim
|
@@ -336,6 +404,7 @@ test_files:
|
|
336
404
|
- test/config.yml
|
337
405
|
- test/fake_env.rb
|
338
406
|
- test/helper.rb
|
407
|
+
- test/test_api.rb
|
339
408
|
- test/test_cli.rb
|
340
409
|
- test/test_client.rb
|
341
410
|
- test/test_exception_handler.rb
|