resque_ui 3.1.3 → 3.1.4
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/History.txt +8 -0
- data/README.markdown +4 -0
- data/VERSION.yml +1 -1
- data/lib/resque_ui/cap_recipes.rb +10 -10
- data/rdoc/created.rid +3 -3
- 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,11 @@
|
|
1
|
+
== 3.1.4 2011-10-27
|
2
|
+
|
3
|
+
* Changed all the cap tasks to use the :resque role.
|
4
|
+
- You now need to define the :resque role in your deploy/<environment>.rb file with the servers that will run your workers.
|
5
|
+
role :resque, 'server1', 'server2'
|
6
|
+
The cap tasks used to run the :app role, but this has been changed to allow you to better refine your servers. You may not run
|
7
|
+
the resque workers on all, or even any of your :app servers.
|
8
|
+
|
1
9
|
== 3.1.3 2011-10-24
|
2
10
|
|
3
11
|
* Guard against nil in templates
|
data/README.markdown
CHANGED
@@ -170,6 +170,10 @@ The controller calls cap tasks to manage the workers. To include the recipes in
|
|
170
170
|
|
171
171
|
require 'resque_ui/cap_recipes'
|
172
172
|
|
173
|
+
You will also need to define the :resque role in your deploy/<environment>.rb file with the servers that will run your workers.
|
174
|
+
|
175
|
+
role :resque, 'server1', 'server2'
|
176
|
+
|
173
177
|
You will also need to make sure you have your rake path set in the deploy.rb file.
|
174
178
|
|
175
179
|
set :rake, "/opt/ruby-enterprise-1.8.6-20090421/bin/rake"
|
data/VERSION.yml
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
Capistrano::Configuration.instance(:must_exist).load do
|
10
10
|
namespace :resque do
|
11
11
|
desc "start a resque worker. optional arg: host=ip queue=name"
|
12
|
-
task :work, :roles => :
|
12
|
+
task :work, :roles => :resque do
|
13
13
|
default_run_options[:pty] = true
|
14
14
|
hosts = ENV['host'] || find_servers_for_task(current_task).collect { |s| s.host }
|
15
15
|
queue = ENV['queue'] || '*'
|
@@ -18,7 +18,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
18
18
|
end
|
19
19
|
|
20
20
|
desc "Gracefully kill a worker. If the worker is working, it will finish before shutting down. arg: host=ip pid=pid"
|
21
|
-
task :quit_worker, :roles => :
|
21
|
+
task :quit_worker, :roles => :resque do
|
22
22
|
if ENV['host'].nil? || ENV['host'].empty? || ENV['pid'].nil? || ENV['pid'].empty?
|
23
23
|
puts 'You must enter the host and pid to kill..cap resque:quit host=ip pid=pid'
|
24
24
|
else
|
@@ -28,14 +28,14 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
28
28
|
end
|
29
29
|
|
30
30
|
desc "Gracefully kill all workers on all servers. If the worker is working, it will finish before shutting down."
|
31
|
-
task :quit_workers, :roles => :
|
31
|
+
task :quit_workers, :roles => :resque do
|
32
32
|
default_run_options[:pty] = true
|
33
33
|
rake = fetch(:rake, "rake")
|
34
34
|
run("cd #{current_path}; #{rake} RAILS_ENV=#{stage} resque:quit_workers")
|
35
35
|
end
|
36
36
|
|
37
37
|
desc "Kill a rogue worker. If the worker is working, it will not finish and the job will go to the Failed queue as a DirtyExit. arg: host=ip pid=pid"
|
38
|
-
task :kill_worker_with_impunity, :roles => :
|
38
|
+
task :kill_worker_with_impunity, :roles => :resque do
|
39
39
|
if ENV['host'].nil? || ENV['host'].empty? || ENV['pid'].nil? || ENV['pid'].empty?
|
40
40
|
puts 'You must enter the host and pid to kill..cap resque:quit host=ip pid=pid'
|
41
41
|
else
|
@@ -45,14 +45,14 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
45
45
|
end
|
46
46
|
|
47
47
|
desc "Kill all rogue workers on all servers. If the worker is working, it will not finish and the job will go to the Failed queue as a DirtyExit."
|
48
|
-
task :kill_workers_with_impunity, :roles => :
|
48
|
+
task :kill_workers_with_impunity, :roles => :resque do
|
49
49
|
default_run_options[:pty] = true
|
50
50
|
rake = fetch(:rake, "rake")
|
51
51
|
run("cd #{current_path}; #{rake} RAILS_ENV=#{stage} resque:kill_workers_with_impunity")
|
52
52
|
end
|
53
53
|
|
54
54
|
desc "start multiple resque workers. arg:count=x optional arg: host=ip queue=name"
|
55
|
-
task :workers, :roles => :
|
55
|
+
task :workers, :roles => :resque do
|
56
56
|
default_run_options[:pty] = true
|
57
57
|
hosts = ENV['host'] || find_servers_for_task(current_task).collect { |s| s.host }
|
58
58
|
queue = ENV['queue'] || '*'
|
@@ -62,7 +62,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
62
62
|
end
|
63
63
|
|
64
64
|
desc "Restart all workers on all servers"
|
65
|
-
task :restart_workers, :roles => :
|
65
|
+
task :restart_workers, :roles => :resque do
|
66
66
|
default_run_options[:pty] = true
|
67
67
|
rake = fetch(:rake, "rake")
|
68
68
|
run("cd #{current_path}; nohup #{rake} RAILS_ENV=#{stage} resque:restart_workers")
|
@@ -73,7 +73,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
73
73
|
# ====================================
|
74
74
|
|
75
75
|
desc "start a resque worker. optional arg: host=ip queue=name"
|
76
|
-
task :scheduler, :roles => :
|
76
|
+
task :scheduler, :roles => :resque do
|
77
77
|
default_run_options[:pty] = true
|
78
78
|
hosts = ENV['host'] || find_servers_for_task(current_task).collect { |s| s.host }
|
79
79
|
rake = fetch(:rake, "rake")
|
@@ -81,7 +81,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
81
81
|
end
|
82
82
|
|
83
83
|
desc "Gracefully kill the scheduler on a server. arg: host=ip"
|
84
|
-
task :quit_scheduler, :roles => :
|
84
|
+
task :quit_scheduler, :roles => :resque do
|
85
85
|
if ENV['host'].nil? || ENV['host'].empty?
|
86
86
|
puts 'You must enter the host to kill..cap resque:quit_scheduler host=ip pid=pid'
|
87
87
|
else
|
@@ -92,7 +92,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
92
92
|
end
|
93
93
|
|
94
94
|
desc "Determine if the scheduler is running or not on a server"
|
95
|
-
task :scheduler_status, :roles => :
|
95
|
+
task :scheduler_status, :roles => :resque do
|
96
96
|
hosts = ENV['hosts'].to_s.split(',') || find_servers_for_task(current_task).collect { |s| s.host }
|
97
97
|
|
98
98
|
status = nil
|
data/rdoc/created.rid
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
|
2
|
-
README.markdown Thu,
|
1
|
+
Thu, 27 Oct 2011 13:17:58 -0400
|
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 Thu,
|
5
|
+
lib/resque_ui/cap_recipes.rb Thu, 27 Oct 2011 12:28:13 -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.4</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.4</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.4'.</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.4]</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">Thu Oct
|
27
|
+
<dd class="modified-date">Thu Oct 27 12:28:13 -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.4]</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.4]</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.4]</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.4]</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.4]</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.4]</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.4]</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.4]</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.4"
|
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-10-
|
12
|
+
s.date = %q{2011-10-27}
|
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.4
|
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-10-
|
13
|
+
date: 2011-10-27 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|