sidekiq 0.5.0 → 0.5.1
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/Changes.md +1 -1
- data/README.md +1 -1
- data/lib/sidekiq/cli.rb +4 -1
- data/lib/sidekiq/client.rb +2 -1
- data/lib/sidekiq/manager.rb +2 -1
- data/lib/sidekiq/middleware.rb +1 -1
- data/lib/sidekiq/version.rb +1 -1
- data/myapp/Gemfile +2 -2
- data/myapp/Gemfile.lock +34 -38
- metadata +13 -13
data/Changes.md
CHANGED
data/README.md
CHANGED
data/lib/sidekiq/cli.rb
CHANGED
@@ -23,9 +23,12 @@ module Sidekiq
|
|
23
23
|
begin
|
24
24
|
log 'Starting processing, hit Ctrl-C to stop'
|
25
25
|
manager.start!
|
26
|
+
# HACK need to determine how to pause main thread while
|
27
|
+
# waiting for signals.
|
26
28
|
sleep FOREVER
|
27
29
|
rescue Interrupt
|
28
|
-
|
30
|
+
# TODO Need clean shutdown support from Celluloid
|
31
|
+
log 'Shutting down, pausing 5 seconds to let workers finish...'
|
29
32
|
manager.stop!
|
30
33
|
manager.wait(:shutdown)
|
31
34
|
end
|
data/lib/sidekiq/client.rb
CHANGED
data/lib/sidekiq/manager.rb
CHANGED
@@ -26,6 +26,7 @@ module Sidekiq
|
|
26
26
|
@queue_idx = 0
|
27
27
|
@queues_size = @queues.size
|
28
28
|
@redis = Redis.connect(:url => location)
|
29
|
+
@done_callback = nil
|
29
30
|
|
30
31
|
@done = false
|
31
32
|
@busy = []
|
@@ -54,7 +55,7 @@ module Sidekiq
|
|
54
55
|
end
|
55
56
|
|
56
57
|
def processor_done(processor)
|
57
|
-
@done_callback.call(processor)
|
58
|
+
@done_callback.call(processor) if @done_callback
|
58
59
|
@busy.delete(processor)
|
59
60
|
if stopped?
|
60
61
|
processor.terminate
|
data/lib/sidekiq/middleware.rb
CHANGED
data/lib/sidekiq/version.rb
CHANGED
data/myapp/Gemfile
CHANGED
data/myapp/Gemfile.lock
CHANGED
@@ -1,50 +1,41 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ..
|
3
|
-
specs:
|
4
|
-
sidekiq (0.1.0)
|
5
|
-
celluloid
|
6
|
-
connection_pool
|
7
|
-
multi_json
|
8
|
-
redis
|
9
|
-
|
10
1
|
GEM
|
11
2
|
remote: https://rubygems.org/
|
12
3
|
specs:
|
13
|
-
actionmailer (3.2.
|
14
|
-
actionpack (= 3.2.
|
4
|
+
actionmailer (3.2.1)
|
5
|
+
actionpack (= 3.2.1)
|
15
6
|
mail (~> 2.4.0)
|
16
|
-
actionpack (3.2.
|
17
|
-
activemodel (= 3.2.
|
18
|
-
activesupport (= 3.2.
|
7
|
+
actionpack (3.2.1)
|
8
|
+
activemodel (= 3.2.1)
|
9
|
+
activesupport (= 3.2.1)
|
19
10
|
builder (~> 3.0.0)
|
20
11
|
erubis (~> 2.7.0)
|
21
|
-
journey (~> 1.0.
|
12
|
+
journey (~> 1.0.1)
|
22
13
|
rack (~> 1.4.0)
|
23
14
|
rack-cache (~> 1.1)
|
24
15
|
rack-test (~> 0.6.1)
|
25
16
|
sprockets (~> 2.1.2)
|
26
|
-
activemodel (3.2.
|
27
|
-
activesupport (= 3.2.
|
17
|
+
activemodel (3.2.1)
|
18
|
+
activesupport (= 3.2.1)
|
28
19
|
builder (~> 3.0.0)
|
29
|
-
activerecord (3.2.
|
30
|
-
activemodel (= 3.2.
|
31
|
-
activesupport (= 3.2.
|
20
|
+
activerecord (3.2.1)
|
21
|
+
activemodel (= 3.2.1)
|
22
|
+
activesupport (= 3.2.1)
|
32
23
|
arel (~> 3.0.0)
|
33
24
|
tzinfo (~> 0.3.29)
|
34
|
-
activeresource (3.2.
|
35
|
-
activemodel (= 3.2.
|
36
|
-
activesupport (= 3.2.
|
37
|
-
activesupport (3.2.
|
25
|
+
activeresource (3.2.1)
|
26
|
+
activemodel (= 3.2.1)
|
27
|
+
activesupport (= 3.2.1)
|
28
|
+
activesupport (3.2.1)
|
38
29
|
i18n (~> 0.6)
|
39
30
|
multi_json (~> 1.0)
|
40
31
|
arel (3.0.0)
|
41
32
|
builder (3.0.0)
|
42
|
-
celluloid (0.
|
33
|
+
celluloid (0.8.0)
|
43
34
|
connection_pool (0.1.0)
|
44
35
|
erubis (2.7.0)
|
45
36
|
hike (1.2.1)
|
46
37
|
i18n (0.6.0)
|
47
|
-
journey (1.0.
|
38
|
+
journey (1.0.1)
|
48
39
|
json (1.6.5)
|
49
40
|
mail (2.4.1)
|
50
41
|
i18n (>= 0.4.0)
|
@@ -60,17 +51,17 @@ GEM
|
|
60
51
|
rack
|
61
52
|
rack-test (0.6.1)
|
62
53
|
rack (>= 1.0)
|
63
|
-
rails (3.2.
|
64
|
-
actionmailer (= 3.2.
|
65
|
-
actionpack (= 3.2.
|
66
|
-
activerecord (= 3.2.
|
67
|
-
activeresource (= 3.2.
|
68
|
-
activesupport (= 3.2.
|
54
|
+
rails (3.2.1)
|
55
|
+
actionmailer (= 3.2.1)
|
56
|
+
actionpack (= 3.2.1)
|
57
|
+
activerecord (= 3.2.1)
|
58
|
+
activeresource (= 3.2.1)
|
59
|
+
activesupport (= 3.2.1)
|
69
60
|
bundler (~> 1.0)
|
70
|
-
railties (= 3.2.
|
71
|
-
railties (3.2.
|
72
|
-
actionpack (= 3.2.
|
73
|
-
activesupport (= 3.2.
|
61
|
+
railties (= 3.2.1)
|
62
|
+
railties (3.2.1)
|
63
|
+
actionpack (= 3.2.1)
|
64
|
+
activesupport (= 3.2.1)
|
74
65
|
rack-ssl (~> 1.3.2)
|
75
66
|
rake (>= 0.8.7)
|
76
67
|
rdoc (~> 3.4)
|
@@ -79,6 +70,11 @@ GEM
|
|
79
70
|
rdoc (3.12)
|
80
71
|
json (~> 1.4)
|
81
72
|
redis (2.2.2)
|
73
|
+
sidekiq (0.5.1)
|
74
|
+
celluloid
|
75
|
+
connection_pool
|
76
|
+
multi_json
|
77
|
+
redis
|
82
78
|
sprockets (2.1.2)
|
83
79
|
hike (~> 1.2)
|
84
80
|
rack (~> 1.0)
|
@@ -95,6 +91,6 @@ PLATFORMS
|
|
95
91
|
ruby
|
96
92
|
|
97
93
|
DEPENDENCIES
|
98
|
-
rails (= 3.2.
|
99
|
-
sidekiq
|
94
|
+
rails (= 3.2.1)
|
95
|
+
sidekiq
|
100
96
|
sqlite3
|
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: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-02-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: redis
|
16
|
-
requirement: &
|
16
|
+
requirement: &70180457698040 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70180457698040
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: connection_pool
|
27
|
-
requirement: &
|
27
|
+
requirement: &70180457697080 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70180457697080
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: celluloid
|
38
|
-
requirement: &
|
38
|
+
requirement: &70180457696360 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70180457696360
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: multi_json
|
49
|
-
requirement: &
|
49
|
+
requirement: &70180457695360 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70180457695360
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: minitest
|
60
|
-
requirement: &
|
60
|
+
requirement: &70180457694420 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70180457694420
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
|
-
requirement: &
|
71
|
+
requirement: &70180457693640 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70180457693640
|
80
80
|
description: Simple, efficient message processing for Ruby
|
81
81
|
email:
|
82
82
|
- mperham@gmail.com
|