standup 0.3.30 → 0.3.31

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.30
1
+ 0.3.31
@@ -2,8 +2,9 @@
2
2
  export HOME="/home/<%= scripts.ec2.params.ssh_user %>"
3
3
 
4
4
  if [ $1 = "ALL_QUEUES" ];then
5
- sudo -u www-data -E QUEUE=* VERBOSE=1 nohup rake environment resque:work >> log/resque_worker_$1_$2.log 2>&1 &
5
+ QUEUE=*
6
6
  else
7
- sudo -u www-data -E QUEUE=$1 VERBOSE=1 nohup rake environment resque:work >> log/resque_worker_$1_$2.log 2>&1 &
7
+ QUEUE=$1
8
8
  fi
9
- echo $(($! - 1)) > tmp/pids/resque_$1_$2.pid
9
+
10
+ sudo -u www-data -E QUEUE=$QUEUE VVERBOSE=1 PIDFILE=tmp/pids/resque_$1_$2.pid nohup rake environment resque:work >> log/resque_worker_$1_$2.log 2>&1 &
data/scripts/resque.rb CHANGED
@@ -22,6 +22,10 @@ Standup.script :node do
22
22
  end
23
23
 
24
24
  def restart
25
- scripts.monit.restart_watch 'resque'
25
+ ((scripts.webapp.params.has_key?(:resque_queues) && scripts.webapp.params.resque_queues.presence) || {"ALL_QUEUES" => 1 }).each_pair do |queue_name, num_of_workers|
26
+ 1.upto(num_of_workers) do |num|
27
+ scripts.monit.restart_watch "resque_#{queue_name}_#{num}"
28
+ end
29
+ end
26
30
  end
27
31
  end
data/standup.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{standup}
8
- s.version = "0.3.30"
8
+ s.version = "0.3.31"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ilia Ablamonov", "Artem Orlov", "Cloud Castle Inc."]
12
- s.date = %q{2011-05-13}
12
+ s.date = %q{2011-05-16}
13
13
  s.default_executable = %q{standup}
14
14
  s.email = %q{ilia@flamefork.ru}
15
15
  s.executables = ["standup"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standup
3
3
  version: !ruby/object:Gem::Version
4
- hash: 47
4
+ hash: 45
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 30
10
- version: 0.3.30
9
+ - 31
10
+ version: 0.3.31
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ilia Ablamonov
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-05-13 00:00:00 +04:00
20
+ date: 2011-05-16 00:00:00 +04:00
21
21
  default_executable: standup
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency