capistrano3-delayed-job 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -0
- data/capistrano3-delayed-job.gemspec +1 -1
- data/lib/capistrano/tasks/delayed-job.rake +1 -0
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b56f8cedec38544aade99556d1c6e6109ab0499
|
4
|
+
data.tar.gz: 6428fd9a239e4f2d8298ea057bbc32036ea5106f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 104307ea5b335aae7a812bdbb869ab84bde08bb1d78b58e06aeb12d50827b6893f1de350af0f1dcaf87847eeecd2e250ddb484c8307fb125ccabb47c7f104cbd
|
7
|
+
data.tar.gz: 4a93b706c366a82a26ec2968ec630d8dc1cd757f408ab2a7ce401a3b8e8173669218c3c4d766b8194633a14f9eb172e1d992683579c6bb1c69dab1c800524104
|
data/README.md
CHANGED
@@ -70,6 +70,9 @@ set :delayed_job_bin_path, 'script' # for rails 3.x
|
|
70
70
|
|
71
71
|
### Set the location of the delayed_job logfile
|
72
72
|
set :delayed_log_dir, 'path_to_logfile'
|
73
|
+
|
74
|
+
### Set the location of the delayed_job pid file
|
75
|
+
set :delayed_job_pid_dir, 'path_to_pid_dir'
|
73
76
|
```
|
74
77
|
|
75
78
|
It also adds the following hook
|
@@ -80,6 +83,17 @@ after 'deploy:published', 'restart' do
|
|
80
83
|
end
|
81
84
|
```
|
82
85
|
|
86
|
+
Following setting is recommended to avoid stop/restart problem.
|
87
|
+
See [#16](https://github.com/platanus/capistrano3-delayed-job/issues/16) or [#22](https://github.com/platanus/capistrano3-delayed-job/pull/22) for more detail.
|
88
|
+
|
89
|
+
```ruby
|
90
|
+
set: linked_dirs, %w(tmp/pids)
|
91
|
+
|
92
|
+
# or
|
93
|
+
|
94
|
+
set :delayed_job_pid_dir, '/tmp'
|
95
|
+
```
|
96
|
+
|
83
97
|
## Contributing
|
84
98
|
|
85
99
|
1. Fork it
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "capistrano3-delayed-job"
|
7
|
-
spec.version = "1.
|
7
|
+
spec.version = "1.6.0"
|
8
8
|
spec.authors = ["Juan Ignacio Donoso", "Agustin Feuerhake", "Ignacio Baixas"]
|
9
9
|
spec.email = ["juan.ignacio@platan.us", "agustin@platan.us", "ignacio@platanus"]
|
10
10
|
spec.summary = %q{Adds support for delayed_jobs to Capistrano 3.x}
|
@@ -5,6 +5,7 @@ namespace :delayed_job do
|
|
5
5
|
args << "-n #{fetch(:delayed_job_workers)}" unless fetch(:delayed_job_workers).nil?
|
6
6
|
args << "--queues=#{fetch(:delayed_job_queues).join(',')}" unless fetch(:delayed_job_queues).nil?
|
7
7
|
args << "--prefix=#{fetch(:delayed_job_prefix)}" unless fetch(:delayed_job_prefix).nil?
|
8
|
+
args << "--pid-dir=#{fetch(:delayed_job_pid_dir)}" unless fetch(:delayed_job_pid_dir).nil?
|
8
9
|
args << "--log-dir=#{fetch(:delayed_log_dir)}" unless fetch(:delayed_log_dir).nil?
|
9
10
|
args << fetch(:delayed_job_pools, {}).map {|k,v| "--pool='#{k}:#{v}'"}.join(' ') unless fetch(:delayed_job_pools).nil?
|
10
11
|
args.join(' ')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano3-delayed-job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Ignacio Donoso
|
@@ -10,34 +10,34 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2016-02-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capistrano
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 3.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: 3.0.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: rake
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- - ~>
|
33
|
+
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
35
|
version: '10.0'
|
36
36
|
type: :development
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- - ~>
|
40
|
+
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '10.0'
|
43
43
|
description: Adds support for delayed_jobs to Capistrano 3.x
|
@@ -49,7 +49,7 @@ executables: []
|
|
49
49
|
extensions: []
|
50
50
|
extra_rdoc_files: []
|
51
51
|
files:
|
52
|
-
- .gitignore
|
52
|
+
- ".gitignore"
|
53
53
|
- Gemfile
|
54
54
|
- LICENSE.txt
|
55
55
|
- README.md
|
@@ -68,17 +68,17 @@ require_paths:
|
|
68
68
|
- lib
|
69
69
|
required_ruby_version: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
|
-
- -
|
71
|
+
- - ">="
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '0'
|
74
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
75
|
requirements:
|
76
|
-
- -
|
76
|
+
- - ">="
|
77
77
|
- !ruby/object:Gem::Version
|
78
78
|
version: '0'
|
79
79
|
requirements: []
|
80
80
|
rubyforge_project:
|
81
|
-
rubygems_version: 2.
|
81
|
+
rubygems_version: 2.5.1
|
82
82
|
signing_key:
|
83
83
|
specification_version: 4
|
84
84
|
summary: Adds support for delayed_jobs to Capistrano 3.x
|