capistrano-hivequeen 2.1.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -24,8 +24,9 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
24
24
|
# From the command line, use -s override=true to force a deployment
|
25
25
|
set :override, false
|
26
26
|
|
27
|
-
#
|
28
|
-
|
27
|
+
# If a delayed_job worker doesn't stop/restart in time (probably b/c a slow job is running)
|
28
|
+
# trust that runit will eventually stop/restart the worker
|
29
|
+
set :tolerate_slow_bg, true
|
29
30
|
|
30
31
|
# Option to skip background tasks
|
31
32
|
set :skip_bg, false
|
@@ -92,12 +92,15 @@ Capistrano::Configuration.instance.load do
|
|
92
92
|
%w(start stop restart).each do |action|
|
93
93
|
desc "#{action} the delayed_job processes"
|
94
94
|
task action, :roles => fetch(:bg_roles, [:bg]) do
|
95
|
-
next if skip_bg
|
96
95
|
begin
|
97
|
-
run "sv
|
96
|
+
run "sv #{action} `cd /etc/service; ls -d dj_*`"
|
98
97
|
rescue Capistrano::CommandError
|
99
|
-
|
100
|
-
|
98
|
+
if tolerate_slow_bg
|
99
|
+
logger.info "Some bg workers did not #{action} quickly, but will #{action} when the current job finishes."
|
100
|
+
logger.info "Consider running with '-s tolerate_slow_bg=false'"
|
101
|
+
else
|
102
|
+
raise $!
|
103
|
+
end
|
101
104
|
end
|
102
105
|
end
|
103
106
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-hivequeen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
16
|
-
requirement: &
|
16
|
+
requirement: &70215770599560 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 2.11.2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70215770599560
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: json
|
27
|
-
requirement: &
|
27
|
+
requirement: &70215770599020 !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: *70215770599020
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: excon
|
38
|
-
requirement: &
|
38
|
+
requirement: &70215770591500 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: 0.6.0
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70215770591500
|
47
47
|
description: Capistrano extensions for interacting with HiveQueen
|
48
48
|
email: aaron@kickstarter.com
|
49
49
|
executables: []
|