blue-resque 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Blue
2
2
  module Resque
3
- VERSION = "0.0.10"
3
+ VERSION = "0.0.11"
4
4
  end
5
5
  end
@@ -1,5 +1,11 @@
1
1
  <% counter = 0 %>
2
2
  <% Blue.config.resque.queues.each do |queues, num| %>
3
3
  <% num.times do |i| %>
4
+ <% counter += 1 %>
5
+ check process resque_worker_<%= counter %>
6
+ with pidfile <%= Blue::Resque.worker_pid_path(counter) %>
7
+ start program = "/bin/sh -c 'cd <%= Blue.rails_current %> ; bundle exec rake environment resque:work HOME=/home/rails/ RAILS_ENV=<%= Blue.env %> QUEUE=<%= queues %> VERBOSE=1 PIDFILE=<%= Blue::Resque.worker_pid_path(counter) %> >> log/resque_worker_<%= counter %>.log 2>&1 &'" as uid <%= Blue.config.user %> and gid <%= Blue.config.group %> with timeout 30 seconds
8
+ stop program = "/bin/sh -c 'cd <%= Blue.rails_current %> && kill -QUIT $(cat <%= Blue::Resque.worker_pid_path(counter) %>) ; rm -f <%= Blue::Resque.worker_pid_path(counter) %> ; exit 0;'"
9
+ group resque
4
10
  <% end %>
5
11
  <% end %>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blue-resque
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 10
10
- version: 0.0.10
9
+ - 11
10
+ version: 0.0.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Josh Sharpe