capistrano3-delayed-job 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b56f8cedec38544aade99556d1c6e6109ab0499
4
- data.tar.gz: 6428fd9a239e4f2d8298ea057bbc32036ea5106f
3
+ metadata.gz: f1343ef016cef7cceeb2beef7d053e7de1b0b9ae
4
+ data.tar.gz: a50d0ef69caa26ce53de50c9705004d832f8cc5e
5
5
  SHA512:
6
- metadata.gz: 104307ea5b335aae7a812bdbb869ab84bde08bb1d78b58e06aeb12d50827b6893f1de350af0f1dcaf87847eeecd2e250ddb484c8307fb125ccabb47c7f104cbd
7
- data.tar.gz: 4a93b706c366a82a26ec2968ec630d8dc1cd757f408ab2a7ce401a3b8e8173669218c3c4d766b8194633a14f9eb172e1d992683579c6bb1c69dab1c800524104
6
+ metadata.gz: 22e3842d7af5ca2ff06aa2856d152a624eb7c653c07a588b400278d793022572671137d7862968528a3530608a23ac4588885a4a92ca1966c352708fc8468ec9
7
+ data.tar.gz: 9c0afda02c753670cc96221472c42a8648a56e77d49c4e9d93bc5acedee47960c2641d29736aab6492713a7a7678d32d180eb9beec8f09fa0dd9158f255a8f5d
data/README.md CHANGED
@@ -43,7 +43,7 @@ set :delayed_job_workers, 2
43
43
  # String to be prefixed to worker process names
44
44
  # This feature allows a prefix name to be placed in front of the process.
45
45
  # For example: reports/delayed_job.0 instead of just delayed_job.0
46
- set :delayed_job_prefix, :reports
46
+ set :delayed_job_prefix, 'reports'
47
47
 
48
48
  # Delayed_job queue or queues
49
49
  # Set the --queue or --queues option to work from a particular queue.
@@ -51,13 +51,36 @@ set :delayed_job_prefix, :reports
51
51
  set :delayed_job_queues, ['mailer','tracking']
52
52
 
53
53
  # Specify different pools
54
- # You can use this option multiple times to start different numbers of workers for different queues.
54
+ # You can use this option multiple times to start different numbers of workers
55
+ # for different queues.
56
+ # NOTE: When using delayed_job_pools, the settings for delayed_job_workers and
57
+ # delayed_job_queues are ignored.
55
58
  # default value: nil
56
- set :delayed_job_pools, {
57
- :mailer => 2,
58
- :tracking => 1,
59
- :* => 2
60
- }
59
+ #
60
+ # Single pool of 3 workers looking at all queues: (when alone, '*' is a
61
+ # special case meaning any queue)
62
+ # set :delayed_job_pools, { '*' => 3 }
63
+ # set :delayed_job_pools, { '' => 3 }
64
+ # set :delayed_job_pools, { nil => 3 }
65
+ #
66
+ # Several queues, some with their own dedicated pools: (symbol keys will be
67
+ # converted to strings)
68
+ # set :delayed_job_pools, {
69
+ # :mailer => 2, # 2 workers looking only at the 'mailer' queue
70
+ # :tracking => 1, # 1 worker exclusively for the 'tracking' queue
71
+ # :* => 2 # 2 on any queue (including 'mailer' and 'tracking')
72
+ # }
73
+ #
74
+ # Several workers each handling one or more queues:
75
+ # set :delayed_job_pools, {
76
+ # 'high_priority' => 1, # one just for the important stuff
77
+ # 'high_priority,*' => 1, # never blocked by low_priority jobs
78
+ # 'high_priority,*,low_priority' => 1, # works on whatever is available
79
+ # '*,low_priority' => 1, # high_priority doesn't starve the little guys
80
+ # }
81
+ # Identification is assigned in order 0..3.
82
+ # Note that the '*' in this case is actually a queue with that name and does
83
+ # not mean any queue as it is not used alone, but alongside other queues.
61
84
 
62
85
  # Set the roles where the delayed_job process should be started
63
86
  # default value: :app
@@ -65,14 +88,20 @@ set :delayed_job_roles, [:app, :background]
65
88
 
66
89
  # Set the location of the delayed_job executable
67
90
  # Can be relative to the release_path or absolute
68
- # default value 'bin'
69
- set :delayed_job_bin_path, 'script' # for rails 3.x
91
+ # default value: 'bin'
92
+ # set :delayed_job_bin_path, 'script' # for rails 3.x
70
93
 
71
- ### Set the location of the delayed_job logfile
72
- set :delayed_log_dir, 'path_to_logfile'
94
+ # To pass the `-m` option to the delayed_job executable which will cause each
95
+ # worker to be monitored when daemonized.
96
+ # set :delayed_job_monitor, true
73
97
 
74
- ### Set the location of the delayed_job pid file
75
- set :delayed_job_pid_dir, 'path_to_pid_dir'
98
+ ### Set the location of the delayed_job.log logfile
99
+ # default value: "#{Rails.root}/log" or "#{Dir.pwd}/log"
100
+ # set :delayed_log_dir, 'path_to_log_dir'
101
+
102
+ ### Set the location of the delayed_job pid file(s)
103
+ # default value: "#{Rails.root}/tmp/pids" or "#{Dir.pwd}/tmp/pids"
104
+ # set :delayed_job_pid_dir, 'path_to_pid_dir'
76
105
  ```
77
106
 
78
107
  It also adds the following hook
@@ -113,4 +142,3 @@ capistrano3-delayed-job is maintained by [platanus](http://platan.us).
113
142
  ## License
114
143
 
115
144
  Guides is © 2014 platanus, spa. It is free software and may be redistributed under the terms specified in the LICENSE file.
116
-
@@ -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.6.0"
7
+ spec.version = "1.7.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}
@@ -2,6 +2,7 @@ namespace :delayed_job do
2
2
 
3
3
  def delayed_job_args
4
4
  args = []
5
+ args << "-m" if fetch(:delayed_job_monitor) # could be set to false
5
6
  args << "-n #{fetch(:delayed_job_workers)}" unless fetch(:delayed_job_workers).nil?
6
7
  args << "--queues=#{fetch(:delayed_job_queues).join(',')}" unless fetch(:delayed_job_queues).nil?
7
8
  args << "--prefix=#{fetch(:delayed_job_prefix)}" unless fetch(:delayed_job_prefix).nil?
@@ -65,5 +66,6 @@ namespace :load do
65
66
  set :delayed_job_pools, nil
66
67
  set :delayed_job_roles, :app
67
68
  set :delayed_job_bin_path, 'bin'
69
+ set :delayed_job_monitor, nil
68
70
  end
69
71
  end
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.6.0
4
+ version: 1.7.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: 2016-02-23 00:00:00.000000000 Z
13
+ date: 2016-04-14 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,12 +68,12 @@ 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: []