resque_ui 3.1.5 → 3.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/VERSION.yml +1 -1
- data/lib/resque_ui/cap_recipes.rb +2 -1
- data/lib/tasks/worker.rake +2 -1
- data/rdoc/created.rid +2 -2
- data/rdoc/index.html +3 -3
- data/rdoc/lib/resque_ui/cap_rb.html +1 -1
- data/rdoc/lib/resque_ui/cap_recipes_rb.html +2 -2
- data/rdoc/lib/resque_ui/overrides/resque/job_rb.html +1 -1
- data/rdoc/lib/resque_ui/overrides/resque/resque_rb.html +1 -1
- data/rdoc/lib/resque_ui/overrides/resque/worker_rb.html +1 -1
- data/rdoc/lib/resque_ui/overrides/resque_scheduler/resque_scheduler_rb.html +1 -1
- data/rdoc/lib/resque_ui/overrides/resque_status/chained_job_with_status_rb.html +1 -1
- data/rdoc/lib/resque_ui/overrides/resque_status/job_with_status_rb.html +1 -1
- data/rdoc/lib/resque_ui/overrides/resque_status/status_rb.html +1 -1
- data/rdoc/lib/resque_ui_rb.html +1 -1
- data/resque_ui.gemspec +2 -2
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
== 3.1.6 2011-11-02
|
2
|
+
|
3
|
+
* Need the resque:restart cap task to pass the resque_rake value to the resque:restart rake task so it can start workers with the modified rake options
|
4
|
+
|
1
5
|
== 3.1.5 2011-11-01
|
2
6
|
|
3
7
|
* Added the ability to set an optional :resque_rake variable in your deploy.rb file that is used by the resque:work task if set.
|
data/VERSION.yml
CHANGED
@@ -113,7 +113,8 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
113
113
|
task :restart_workers, :roles => :resque do
|
114
114
|
default_run_options[:pty] = true
|
115
115
|
rake = fetch(:rake, "rake")
|
116
|
-
|
116
|
+
#pass the rake options to the rake task so the workers can be started with the options.
|
117
|
+
run("cd #{current_path}; RAILS_ENV=#{stage} RAKE_WITH_OPTS='#{get_rake}' nohup #{rake} resque:restart_workers")
|
117
118
|
end
|
118
119
|
|
119
120
|
# ====================================
|
data/lib/tasks/worker.rake
CHANGED
@@ -47,12 +47,13 @@ namespace :resque do
|
|
47
47
|
pid = ''
|
48
48
|
queues = ''
|
49
49
|
local_ip = Resque.workers.first.local_ip rescue '';
|
50
|
+
rake = ENV['RAKE_WITH_OPTS'] || 'rake'
|
50
51
|
Resque.workers.sort_by { |w| w.to_s }.each do |worker|
|
51
52
|
if local_ip == worker.ip # only restart the workers that are on this server
|
52
53
|
if pid != worker.pid
|
53
54
|
system("kill -INT #{worker.pid}")
|
54
55
|
queues = worker.queues_in_pid.join('#')
|
55
|
-
Thread.new(queues) { |queue| system("nohup rake RAILS_ENV=#{Rails.env} QUEUE=#{queue} resque:work") }
|
56
|
+
Thread.new(queues) { |queue| system("nohup #{rake} RAILS_ENV=#{Rails.env} QUEUE=#{queue} resque:work") }
|
56
57
|
pid = worker.pid
|
57
58
|
end
|
58
59
|
end
|
data/rdoc/created.rid
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
|
1
|
+
Wed, 02 Nov 2011 15:41:22 -0400
|
2
2
|
README.markdown Thu, 27 Oct 2011 13:09:37 -0400
|
3
3
|
lib/resque_ui.rb Thu, 13 Oct 2011 11:42:34 -0400
|
4
4
|
lib/resque_ui/cap.rb Wed, 14 Sep 2011 16:39:33 -0400
|
5
|
-
lib/resque_ui/cap_recipes.rb
|
5
|
+
lib/resque_ui/cap_recipes.rb Wed, 02 Nov 2011 15:36:03 -0400
|
6
6
|
lib/resque_ui/overrides/resque/job.rb Fri, 16 Sep 2011 14:33:15 -0400
|
7
7
|
lib/resque_ui/overrides/resque/resque.rb Thu, 15 Sep 2011 12:15:57 -0400
|
8
8
|
lib/resque_ui/overrides/resque/worker.rb Tue, 11 Oct 2011 14:29:01 -0400
|
data/rdoc/index.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<head>
|
7
7
|
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
8
8
|
|
9
|
-
<title>ResqueUi 3.1.
|
9
|
+
<title>ResqueUi 3.1.6</title>
|
10
10
|
|
11
11
|
<link type="text/css" media="screen" href="rdoc.css" rel="stylesheet" />
|
12
12
|
|
@@ -19,10 +19,10 @@
|
|
19
19
|
<body class="indexpage">
|
20
20
|
|
21
21
|
|
22
|
-
<h1>ResqueUi 3.1.
|
22
|
+
<h1>ResqueUi 3.1.6</h1>
|
23
23
|
|
24
24
|
|
25
|
-
<p>This is the API documentation for 'ResqueUi 3.1.
|
25
|
+
<p>This is the API documentation for 'ResqueUi 3.1.6'.</p>
|
26
26
|
|
27
27
|
|
28
28
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<head>
|
7
7
|
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
8
8
|
|
9
|
-
<title>File: cap_recipes.rb [ResqueUi 3.1.
|
9
|
+
<title>File: cap_recipes.rb [ResqueUi 3.1.6]</title>
|
10
10
|
|
11
11
|
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
12
12
|
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<div id="metadata">
|
25
25
|
<dl>
|
26
26
|
<dt class="modified-date">Last Modified</dt>
|
27
|
-
<dd class="modified-date">
|
27
|
+
<dd class="modified-date">Wed Nov 02 15:36:03 -0400 2011</dd>
|
28
28
|
|
29
29
|
|
30
30
|
<dt class="requires">Requires</dt>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<head>
|
7
7
|
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
8
8
|
|
9
|
-
<title>File: job.rb [ResqueUi 3.1.
|
9
|
+
<title>File: job.rb [ResqueUi 3.1.6]</title>
|
10
10
|
|
11
11
|
<link type="text/css" media="screen" href="../../../../rdoc.css" rel="stylesheet" />
|
12
12
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<head>
|
7
7
|
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
8
8
|
|
9
|
-
<title>File: resque.rb [ResqueUi 3.1.
|
9
|
+
<title>File: resque.rb [ResqueUi 3.1.6]</title>
|
10
10
|
|
11
11
|
<link type="text/css" media="screen" href="../../../../rdoc.css" rel="stylesheet" />
|
12
12
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<head>
|
7
7
|
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
8
8
|
|
9
|
-
<title>File: worker.rb [ResqueUi 3.1.
|
9
|
+
<title>File: worker.rb [ResqueUi 3.1.6]</title>
|
10
10
|
|
11
11
|
<link type="text/css" media="screen" href="../../../../rdoc.css" rel="stylesheet" />
|
12
12
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<head>
|
7
7
|
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
8
8
|
|
9
|
-
<title>File: resque_scheduler.rb [ResqueUi 3.1.
|
9
|
+
<title>File: resque_scheduler.rb [ResqueUi 3.1.6]</title>
|
10
10
|
|
11
11
|
<link type="text/css" media="screen" href="../../../../rdoc.css" rel="stylesheet" />
|
12
12
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<head>
|
7
7
|
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
8
8
|
|
9
|
-
<title>File: chained_job_with_status.rb [ResqueUi 3.1.
|
9
|
+
<title>File: chained_job_with_status.rb [ResqueUi 3.1.6]</title>
|
10
10
|
|
11
11
|
<link type="text/css" media="screen" href="../../../../rdoc.css" rel="stylesheet" />
|
12
12
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<head>
|
7
7
|
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
8
8
|
|
9
|
-
<title>File: job_with_status.rb [ResqueUi 3.1.
|
9
|
+
<title>File: job_with_status.rb [ResqueUi 3.1.6]</title>
|
10
10
|
|
11
11
|
<link type="text/css" media="screen" href="../../../../rdoc.css" rel="stylesheet" />
|
12
12
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<head>
|
7
7
|
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
8
8
|
|
9
|
-
<title>File: status.rb [ResqueUi 3.1.
|
9
|
+
<title>File: status.rb [ResqueUi 3.1.6]</title>
|
10
10
|
|
11
11
|
<link type="text/css" media="screen" href="../../../../rdoc.css" rel="stylesheet" />
|
12
12
|
|
data/rdoc/lib/resque_ui_rb.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<head>
|
7
7
|
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
8
8
|
|
9
|
-
<title>File: resque_ui.rb [ResqueUi 3.1.
|
9
|
+
<title>File: resque_ui.rb [ResqueUi 3.1.6]</title>
|
10
10
|
|
11
11
|
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />
|
12
12
|
|
data/resque_ui.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{resque_ui}
|
8
|
-
s.version = "3.1.
|
8
|
+
s.version = "3.1.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Kevin Tyll"]
|
12
|
-
s.date = %q{2011-11-
|
12
|
+
s.date = %q{2011-11-02}
|
13
13
|
s.description = %q{A Rails UI for Resque for managing workers, failures and schedules.}
|
14
14
|
s.email = %q{kevintyll@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: resque_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 3.1.
|
5
|
+
version: 3.1.6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Kevin Tyll
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-11-
|
13
|
+
date: 2011-11-02 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|