standup 0.3.31 → 0.3.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/scripts/resque/resque +3 -4
- data/scripts/resque/resque_monit.conf +3 -1
- data/standup.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.32
|
data/scripts/resque/resque
CHANGED
@@ -2,9 +2,8 @@
|
|
2
2
|
export HOME="/home/<%= scripts.ec2.params.ssh_user %>"
|
3
3
|
|
4
4
|
if [ $1 = "ALL_QUEUES" ];then
|
5
|
-
QUEUE=*
|
5
|
+
sudo -u www-data -E QUEUE=* VERBOSE=1 nohup rake environment resque:work >> log/resque_worker_$1_$2.log 2>&1 &
|
6
6
|
else
|
7
|
-
QUEUE=$1
|
7
|
+
sudo -u www-data -E QUEUE=$1 VERBOSE=1 nohup rake environment resque:work >> log/resque_worker_$1_$2.log 2>&1 &
|
8
8
|
fi
|
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 &
|
9
|
+
echo $(($! - 1)) > tmp/pids/resque_$1_$2.pid
|
@@ -1,11 +1,13 @@
|
|
1
1
|
<% ((scripts.webapp.params.has_key?(:resque_queues) && scripts.webapp.params.resque_queues.presence) || {"ALL_QUEUES" => 1 }).each_pair do |queue_name,num_of_workers|%>
|
2
2
|
<%1.upto(num_of_workers) do |num|%>
|
3
3
|
check process resque_<%= queue_name %>_<%= num %>
|
4
|
+
group resque
|
4
5
|
with pidfile <%= scripts.webapp.app_path%>/tmp/pids/resque_<%= queue_name %>_<%=num %>.pid
|
5
6
|
start program = "/bin/sh -c 'cd <%= scripts.webapp.app_path%>; RAILS_ENV=<%= scripts.webapp.params.rails_env%> script/resque <%= queue_name %> <%=num %>'"
|
6
7
|
stop program = "/bin/sh -c 'cd <%= scripts.webapp.app_path%> && kill -s QUIT `cat tmp/pids/resque_<%= queue_name %>_<%=num %>.pid` && rm -f tmp/pids/resque_<%= queue_name %>_<%=num %>.pid; exit 0;'"
|
7
8
|
if totalmem is greater than 300 MB for 10 cycles then restart
|
8
|
-
|
9
|
+
|
10
|
+
<% end %>
|
9
11
|
<% end %>
|
10
12
|
|
11
13
|
#check process resque
|
data/standup.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{standup}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.32"
|
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."]
|
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:
|
4
|
+
hash: 83
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 32
|
10
|
+
version: 0.3.32
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ilia Ablamonov
|