resque-forker 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/lib/resque/capistrano.rb +5 -5
- data/resque-forker.gemspec +1 -1
- metadata +5 -5
data/CHANGELOG
CHANGED
data/lib/resque/capistrano.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Capistrano task for Resque::Forker.
|
2
2
|
#
|
3
3
|
# To use these tasks, require "resque/capistrano" at the top of the Capfile and
|
4
|
-
# associate your woker instances with the role '
|
4
|
+
# associate your woker instances with the role 'worker'.
|
5
5
|
#
|
6
6
|
# Performs workers:reload after deploy:restart, workers:suspend before
|
7
7
|
# deploy:web:disable and workers:resume after deploy:web:enable.
|
@@ -12,19 +12,19 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
12
12
|
|
13
13
|
namespace :workers do
|
14
14
|
desc "Suspend all resque workers"
|
15
|
-
task :suspend, :roles=>:
|
15
|
+
task :suspend, :roles=>:worker do
|
16
16
|
run "status workers | cut -d ' ' -f 4 | xargs kill -USR2"
|
17
17
|
end
|
18
18
|
desc "Resume all workers that have been paused"
|
19
|
-
task :resume, :roles=>:
|
19
|
+
task :resume, :roles=>:worker do
|
20
20
|
run "status workers | cut -d ' ' -f 4 | xargs kill -CONT"
|
21
21
|
end
|
22
22
|
desc "Reload all workers"
|
23
|
-
task :reload, :roles=>:
|
23
|
+
task :reload, :roles=>:worker do
|
24
24
|
run "reload workers"
|
25
25
|
end
|
26
26
|
desc "List Resque processes"
|
27
|
-
task :pids, :roles=>:
|
27
|
+
task :pids, :roles=>:worker do
|
28
28
|
puts capture("ps aux | grep [r]esque")
|
29
29
|
end
|
30
30
|
end
|
data/resque-forker.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-forker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 1
|
10
|
+
version: 1.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Assaf Arkin
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-09-
|
18
|
+
date: 2010-09-07 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -58,7 +58,7 @@ licenses: []
|
|
58
58
|
post_install_message: ""
|
59
59
|
rdoc_options:
|
60
60
|
- --title
|
61
|
-
- Resque Forker 1.2.
|
61
|
+
- Resque Forker 1.2.1
|
62
62
|
- --main
|
63
63
|
- README.rdoc
|
64
64
|
- --webcvs
|