capistrano-resque-pool 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +4 -0
- data/lib/capistrano/resque/pool/version.rb +1 -1
- data/lib/capistrano/tasks/capistrano-resque-pool.rake +9 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3b14417040add17b019690f1e3c79996b29cb4a5304af4e17e23cc5a8564900e
|
4
|
+
data.tar.gz: 04efae09b6a34325d62ed187825ebd64b733bbde765bf665808a6c88c2b3fa43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9030af48248c5e3b1762a77b8005bf9a05fa6ae4de9d2f9b11a91f3a7cb56165a8d3aada57da1875b666ac079ebc8d98fad8581b8fbc148234b3ce57a6e1fc10
|
7
|
+
data.tar.gz: e97c559428dc19c657b2c1db64730577f03a38bf0e9804700e37b1375ee871a8cc56ba4120ede06d4c9e925a34e3dd0d0c18abb55d6a680967fb8bba3098d709
|
data/README.md
CHANGED
@@ -59,6 +59,10 @@ Gracefully shut down workers, Gracefully shut down manager, start a new manager
|
|
59
59
|
|
60
60
|
bundle exec cap production resque:pool:full_restart
|
61
61
|
|
62
|
+
Leave the old pool running and start a new pool, Shut down other pools after the workers have started for the new pool
|
63
|
+
|
64
|
+
bundle exec cap production resque:pool:hot_swap
|
65
|
+
|
62
66
|
|
63
67
|
## Contributing
|
64
68
|
|
@@ -16,6 +16,15 @@ namespace :resque do
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
+
desc 'Swap in a new pool, then shut down the old pool'
|
20
|
+
task :hot_swap do
|
21
|
+
on roles(workers) do
|
22
|
+
within app_path do
|
23
|
+
execute :bundle, :exec, 'resque-pool', "--daemon --hot-swap --environment #{rails_env}"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
19
28
|
desc 'Gracefully shut down workers and shutdown the manager after all workers are done'
|
20
29
|
task :stop do
|
21
30
|
on roles(workers) do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-resque-pool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maxim Abramchuk
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-09-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -102,8 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
requirements: []
|
105
|
-
|
106
|
-
rubygems_version: 2.5.1
|
105
|
+
rubygems_version: 3.0.6
|
107
106
|
signing_key:
|
108
107
|
specification_version: 4
|
109
108
|
summary: Capistrano integration for Resque pool
|