resque-status 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/resque/server/views/status.erb +2 -2
- data/lib/resque/server/views/statuses.erb +3 -3
- data/lib/resque/status.rb +1 -1
- data/lib/resque/status_server.rb +3 -3
- data/resque-status.gemspec +3 -10
- metadata +63 -97
@@ -1,7 +1,7 @@
|
|
1
1
|
<%= status_view :status_styles, :layout => false %>
|
2
2
|
|
3
3
|
<h1 class='wi'>Statuses: <%= @status.uuid %>/<%= @status.name %></h1>
|
4
|
-
<p class='intro'>Viewing a specific job created with JobWithStatus. <a href="<%=
|
4
|
+
<p class='intro'>Viewing a specific job created with JobWithStatus. <a href="<%= u(:statuses) %>">Return to the list of statuses</a></p>
|
5
5
|
|
6
6
|
<div class="status-holder" rel="<%= @status.status %>" id="status_<%= @status.uuid %>">
|
7
7
|
<div class="status-progress">
|
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
function checkStatus($status) {
|
24
24
|
var status_id = $status.attr('id').replace('status_', '');
|
25
|
-
$.getJSON('<%=
|
25
|
+
$.getJSON('<%= u(:statuses) %>/' + status_id + '.js', function(json) {
|
26
26
|
if (json) {
|
27
27
|
var pct = "0%";
|
28
28
|
if (json.pct_complete) {
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
<h1 class='wi'>Statuses</h1>
|
4
4
|
<%unless @statuses.empty?%>
|
5
|
-
<form method="POST" action="<%=
|
5
|
+
<form method="POST" action="<%= u(:statuses) %>/clear" class='clear-failed'>
|
6
6
|
<input type='submit' name='' value='Clear Statuses' />
|
7
7
|
</form>
|
8
8
|
<%end%>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
<% unless @statuses.empty? %>
|
21
21
|
<% @statuses.each do |status| %>
|
22
22
|
<tr>
|
23
|
-
<td><a href="<%=
|
23
|
+
<td><a href="<%= u(:statuses) %>/<%= status.uuid %>"><%= status.uuid %></a></td>
|
24
24
|
<td><%= status.name %></td>
|
25
25
|
<td class="status status-<%= status.status %>"><%= status.status %></td>
|
26
26
|
<td class="time"><%= status.time %></td>
|
@@ -29,7 +29,7 @@
|
|
29
29
|
<div class="progress-pct"><%= status.pct_complete ? "#{status.pct_complete}%" : '' %></div>
|
30
30
|
</td>
|
31
31
|
<td><%= status.message %></td>
|
32
|
-
<td><% if status.killable? %><a href="<%=
|
32
|
+
<td><% if status.killable? %><a href="<%= u(:statuses) %>/<%= status.uuid %>/kill" class="kill">Kill</a><% end %></td>
|
33
33
|
</tr>
|
34
34
|
<% end %>
|
35
35
|
<% else %>
|
data/lib/resque/status.rb
CHANGED
data/lib/resque/status_server.rb
CHANGED
@@ -28,12 +28,12 @@ module Resque
|
|
28
28
|
|
29
29
|
app.post '/statuses/:id/kill' do
|
30
30
|
Resque::Status.kill(params[:id])
|
31
|
-
redirect
|
31
|
+
redirect u(:statuses)
|
32
32
|
end
|
33
33
|
|
34
34
|
app.post '/statuses/clear' do
|
35
35
|
Resque::Status.clear
|
36
|
-
redirect
|
36
|
+
redirect u(:statuses)
|
37
37
|
end
|
38
38
|
|
39
39
|
app.get "/statuses.poll" do
|
@@ -57,7 +57,7 @@ module Resque
|
|
57
57
|
if @polling
|
58
58
|
text = "Last Updated: #{Time.now.strftime("%H:%M:%S")}"
|
59
59
|
else
|
60
|
-
text = "<a href='#{
|
60
|
+
text = "<a href='#{u(request.path_info)}.poll?start=#{start}' rel='poll'>Live Poll</a>"
|
61
61
|
end
|
62
62
|
"<p class='poll'>#{text}</p>"
|
63
63
|
end
|
data/resque-status.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{resque-status}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Aaron Quint"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-08-10}
|
13
13
|
s.description = %q{resque-status is an extension to the resque queue system that provides simple trackable jobs. It provides a Resque::Status class which can set/get the statuses of jobs and a Resque::JobWithStatus class that when subclassed provides easily trackable/killable jobs.}
|
14
14
|
s.email = %q{aaron@quirkey.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -38,17 +38,10 @@ Gem::Specification.new do |s|
|
|
38
38
|
s.homepage = %q{http://github.com/quirkey/resque-status}
|
39
39
|
s.require_paths = ["lib"]
|
40
40
|
s.rubyforge_project = %q{quirkey}
|
41
|
-
s.rubygems_version = %q{1.
|
41
|
+
s.rubygems_version = %q{1.6.2}
|
42
42
|
s.summary = %q{resque-status is an extension to the resque queue system that provides simple trackable jobs.}
|
43
|
-
s.test_files = [
|
44
|
-
"examples/sleep_job.rb",
|
45
|
-
"test/test_helper.rb",
|
46
|
-
"test/test_resque-job_with_status.rb",
|
47
|
-
"test/test_resque-status.rb"
|
48
|
-
]
|
49
43
|
|
50
44
|
if s.respond_to? :specification_version then
|
51
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
52
45
|
s.specification_version = 3
|
53
46
|
|
54
47
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
metadata
CHANGED
@@ -1,107 +1,83 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-status
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 2
|
8
|
-
- 3
|
9
|
-
version: 0.2.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.4
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Aaron Quint
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
date: 2011-04-02 00:00:00 -07:00
|
12
|
+
date: 2011-08-10 00:00:00.000000000 -07:00
|
18
13
|
default_executable:
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
21
16
|
name: uuid
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: &2169498020 !ruby/object:Gem::Requirement
|
24
18
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 2
|
30
|
-
- 0
|
31
|
-
- 2
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
32
22
|
version: 2.0.2
|
33
23
|
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: resque
|
37
24
|
prerelease: false
|
38
|
-
|
25
|
+
version_requirements: *2169498020
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: resque
|
28
|
+
requirement: &2169496540 !ruby/object:Gem::Requirement
|
39
29
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
segments:
|
44
|
-
- 1
|
45
|
-
- 3
|
46
|
-
- 1
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
47
33
|
version: 1.3.1
|
48
34
|
type: :runtime
|
49
|
-
version_requirements: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: redisk
|
52
35
|
prerelease: false
|
53
|
-
|
36
|
+
version_requirements: *2169496540
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: redisk
|
39
|
+
requirement: &2169495360 !ruby/object:Gem::Requirement
|
54
40
|
none: false
|
55
|
-
requirements:
|
56
|
-
- -
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
segments:
|
59
|
-
- 0
|
60
|
-
- 2
|
61
|
-
- 1
|
41
|
+
requirements:
|
42
|
+
- - ! '>='
|
43
|
+
- !ruby/object:Gem::Version
|
62
44
|
version: 0.2.1
|
63
45
|
type: :runtime
|
64
|
-
version_requirements: *id003
|
65
|
-
- !ruby/object:Gem::Dependency
|
66
|
-
name: shoulda
|
67
46
|
prerelease: false
|
68
|
-
|
47
|
+
version_requirements: *2169495360
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: shoulda
|
50
|
+
requirement: &2169493900 !ruby/object:Gem::Requirement
|
69
51
|
none: false
|
70
|
-
requirements:
|
71
|
-
- -
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
segments:
|
74
|
-
- 2
|
75
|
-
- 10
|
76
|
-
- 2
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
77
55
|
version: 2.10.2
|
78
56
|
type: :development
|
79
|
-
version_requirements: *id004
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
name: mocha
|
82
57
|
prerelease: false
|
83
|
-
|
58
|
+
version_requirements: *2169493900
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: mocha
|
61
|
+
requirement: &2169493000 !ruby/object:Gem::Requirement
|
84
62
|
none: false
|
85
|
-
requirements:
|
86
|
-
- -
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
segments:
|
89
|
-
- 0
|
90
|
-
- 9
|
91
|
-
- 8
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
92
66
|
version: 0.9.8
|
93
67
|
type: :development
|
94
|
-
|
95
|
-
|
68
|
+
prerelease: false
|
69
|
+
version_requirements: *2169493000
|
70
|
+
description: resque-status is an extension to the resque queue system that provides
|
71
|
+
simple trackable jobs. It provides a Resque::Status class which can set/get the
|
72
|
+
statuses of jobs and a Resque::JobWithStatus class that when subclassed provides
|
73
|
+
easily trackable/killable jobs.
|
96
74
|
email: aaron@quirkey.com
|
97
75
|
executables: []
|
98
|
-
|
99
76
|
extensions: []
|
100
|
-
|
101
|
-
extra_rdoc_files:
|
77
|
+
extra_rdoc_files:
|
102
78
|
- LICENSE
|
103
79
|
- README.rdoc
|
104
|
-
files:
|
80
|
+
files:
|
105
81
|
- .document
|
106
82
|
- LICENSE
|
107
83
|
- README.rdoc
|
@@ -122,37 +98,27 @@ files:
|
|
122
98
|
has_rdoc: true
|
123
99
|
homepage: http://github.com/quirkey/resque-status
|
124
100
|
licenses: []
|
125
|
-
|
126
101
|
post_install_message:
|
127
102
|
rdoc_options: []
|
128
|
-
|
129
|
-
require_paths:
|
103
|
+
require_paths:
|
130
104
|
- lib
|
131
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
105
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
132
106
|
none: false
|
133
|
-
requirements:
|
134
|
-
- -
|
135
|
-
- !ruby/object:Gem::Version
|
136
|
-
|
137
|
-
|
138
|
-
version: "0"
|
139
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
112
|
none: false
|
141
|
-
requirements:
|
142
|
-
- -
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
|
145
|
-
- 0
|
146
|
-
version: "0"
|
113
|
+
requirements:
|
114
|
+
- - ! '>='
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
147
117
|
requirements: []
|
148
|
-
|
149
118
|
rubyforge_project: quirkey
|
150
|
-
rubygems_version: 1.
|
119
|
+
rubygems_version: 1.6.2
|
151
120
|
signing_key:
|
152
121
|
specification_version: 3
|
153
|
-
summary: resque-status is an extension to the resque queue system that provides simple
|
154
|
-
|
155
|
-
|
156
|
-
- test/test_helper.rb
|
157
|
-
- test/test_resque-job_with_status.rb
|
158
|
-
- test/test_resque-status.rb
|
122
|
+
summary: resque-status is an extension to the resque queue system that provides simple
|
123
|
+
trackable jobs.
|
124
|
+
test_files: []
|