blue-resque 0.0.1 → 0.0.2

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.
@@ -1,5 +1,5 @@
1
1
  module Blue
2
2
  module Resque
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
data/lib/blue/resque.rb CHANGED
@@ -15,7 +15,7 @@ module Blue
15
15
  end
16
16
 
17
17
  def self.worker_pid_path(worker_id)
18
- "#{Blue.shared_path}/pids/resque_worker_#{worker_id}.pid"
18
+ File.join(Blue.shared_path, 'pids', "/resque_worker_#{worker_id}.pid")
19
19
  end
20
20
 
21
21
  def resque_monitoring
@@ -1,7 +1,7 @@
1
1
  <% Blue.config.resque.num_workers.times do |i| %>
2
2
  check process resque_worker_<%= i %>
3
3
  with pidfile <%= Blue::Resque.worker_pid_path(i) %>
4
- start program = "/bin/sh -c 'cd <%= Blue.rails_current %> ; bundle exec rake environment resque:work RAILS_ENV=<%= Blue.env %> QUEUE=* VERBOSE=1 PIDFILE=<%= Blue::Resque.worker_pid_path(i) %> & >> log/resque_worker_<%= i %>.log 2>&1'" as uid <%= Blue.config.user %> and gid <%= Blue.config.group %> with timeout 60 seconds
4
+ start program = "/bin/sh -c 'cd <%= Blue.rails_current %> ; bundle exec rake resque:work RAILS_ENV=<%= Blue.env %> QUEUE=* VERBOSE=1 PIDFILE=<%= Blue::Resque.worker_pid_path(i) %> & >> log/resque_worker_<%= i %>.log 2>&1'" as uid <%= Blue.config.user %> and gid <%= Blue.config.group %> with timeout 60 seconds
5
5
  stop program = "/bin/sh -c 'cd <%= Blue.rails_current %> && kill -QUIT $(cat <%= Blue::Resque.worker_pid_path(i) %>) ; rm -f <%= Blue::Resque.worker_pid_path(i) %> ; exit 0;'"
6
6
  <% if Blue.config.resque.restart_mb %>if totalmem is greater than <%= Blue.config.resque.restart_mb %> MB for 5 cycles then restart<% end %>
7
7
  group resque
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: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Josh Sharpe
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-05-24 00:00:00 Z
18
+ date: 2013-06-04 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bundler