resque_ui 3.2.3 → 3.2.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 +5 -0
- data/VERSION.yml +1 -1
- data/app/views/resque/cleaner_list.html.erb +1 -1
- data/lib/resque_ui.rb +1 -0
- data/lib/resque_ui/overrides/resque/failure/redis.rb +11 -0
- data/rdoc/Object.html +147 -160
- data/rdoc/Redis.html +185 -0
- data/rdoc/Resque.html +148 -186
- data/rdoc/Resque/ChainedJobWithStatus.html +195 -214
- data/rdoc/Resque/Failure.html +134 -0
- data/rdoc/Resque/Failure/Redis.html +187 -0
- data/rdoc/Resque/Job.html +149 -162
- data/rdoc/Resque/JobWithStatus.html +351 -390
- data/rdoc/Resque/Status.html +265 -293
- data/rdoc/Resque/Worker.html +758 -851
- data/rdoc/ResqueScheduler.html +277 -306
- data/rdoc/ResqueUi.html +114 -136
- data/rdoc/ResqueUi/Cap.html +118 -128
- data/rdoc/ResqueUi/Engine.html +118 -128
- data/rdoc/created.rid +3 -2
- data/rdoc/images/add.png +0 -0
- data/rdoc/images/delete.png +0 -0
- data/rdoc/images/tag_blue.png +0 -0
- data/rdoc/images/transparent.png +0 -0
- data/rdoc/index.html +78 -166
- data/rdoc/js/darkfish.js +99 -62
- data/rdoc/js/jquery.js +15 -29
- data/rdoc/js/navigation.js +142 -0
- data/rdoc/js/search.js +94 -0
- data/rdoc/js/search_index.js +1 -0
- data/rdoc/js/searcher.js +228 -0
- data/rdoc/rdoc.css +119 -339
- data/rdoc/table_of_contents.html +196 -0
- data/resque_ui.gemspec +15 -2
- metadata +15 -2
data/rdoc/Resque/Status.html
CHANGED
@@ -1,184 +1,174 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
5
4
|
<head>
|
6
|
-
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
7
6
|
|
8
|
-
|
7
|
+
<title>Class: Resque::Status</title>
|
9
8
|
|
10
|
-
|
9
|
+
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../";
|
13
|
+
</script>
|
16
14
|
|
17
|
-
|
18
|
-
<
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
|
19
21
|
|
20
|
-
<div id="metadata">
|
21
|
-
<div id="home-metadata">
|
22
|
-
<div id="home-section" class="section">
|
23
|
-
<h3 class="section-header">
|
24
|
-
<a href="../index.html">Home</a>
|
25
|
-
<a href="../index.html#classes">Classes</a>
|
26
|
-
<a href="../index.html#methods">Methods</a>
|
27
|
-
</h3>
|
28
|
-
</div>
|
29
|
-
</div>
|
30
|
-
|
31
|
-
<div id="file-metadata">
|
32
|
-
<div id="file-list-section" class="section">
|
33
|
-
<h3 class="section-header">In Files</h3>
|
34
|
-
<div class="section-body">
|
35
|
-
<ul>
|
36
|
-
|
37
|
-
<li><a href="../lib/resque_ui/overrides/resque_status/status_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
-
class="thickbox" title="lib/resque_ui/overrides/resque_status/status.rb">lib/resque_ui/overrides/resque_status/status.rb</a></li>
|
39
|
-
|
40
|
-
</ul>
|
41
|
-
</div>
|
42
|
-
</div>
|
43
22
|
|
44
|
-
|
45
|
-
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../index.html">Home</a>
|
28
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/resque_ui/overrides/resque_status/status.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
46
53
|
|
47
|
-
|
48
|
-
|
49
|
-
<!-- Parent Class -->
|
50
|
-
<div id="parent-class-section" class="section">
|
51
|
-
<h3 class="section-header">Parent</h3>
|
52
|
-
|
53
|
-
<p class="link"><a href="../Object.html">Object</a></p>
|
54
|
-
|
55
|
-
</div>
|
56
|
-
|
54
|
+
|
55
|
+
</div>
|
57
56
|
|
58
|
-
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
<nav id="parent-class-section" class="section">
|
60
|
+
<h3 class="section-header">Parent</h3>
|
61
|
+
|
62
|
+
<p class="link"><a href="../Object.html">Object</a>
|
63
|
+
|
64
|
+
</nav>
|
59
65
|
|
60
|
-
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<nav id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
61
70
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
<li><a href="#method-i-paused-3F">#paused?</a></li>
|
79
|
-
|
80
|
-
</ul>
|
81
|
-
</div>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
</div>
|
86
|
-
|
87
|
-
<div id="project-metadata">
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
<div id="classindex-section" class="section project-section">
|
92
|
-
<h3 class="section-header">Class/Module Index
|
93
|
-
<span class="search-toggle"><img src="../images/find.png"
|
94
|
-
height="16" width="16" alt="[+]"
|
95
|
-
title="show/hide quicksearch" /></span></h3>
|
96
|
-
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
97
|
-
<fieldset>
|
98
|
-
<legend>Quicksearch</legend>
|
99
|
-
<input type="text" name="quicksearch" value=""
|
100
|
-
class="quicksearch-field" />
|
101
|
-
</fieldset>
|
102
|
-
</form>
|
103
|
-
|
104
|
-
<ul class="link-list">
|
105
|
-
|
106
|
-
<li><a href="../Resque.html">Resque</a></li>
|
107
|
-
|
108
|
-
<li><a href="../Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a></li>
|
109
|
-
|
110
|
-
<li><a href="../Resque/Job.html">Resque::Job</a></li>
|
111
|
-
|
112
|
-
<li><a href="../Resque/JobWithStatus.html">Resque::JobWithStatus</a></li>
|
113
|
-
|
114
|
-
<li><a href="../Resque/Status.html">Resque::Status</a></li>
|
115
|
-
|
116
|
-
<li><a href="../Resque/Worker.html">Resque::Worker</a></li>
|
117
|
-
|
118
|
-
<li><a href="../ResqueUi.html">ResqueUi</a></li>
|
119
|
-
|
120
|
-
<li><a href="../ResqueUi/Cap.html">ResqueUi::Cap</a></li>
|
121
|
-
|
122
|
-
<li><a href="../ResqueUi/Engine.html">ResqueUi::Engine</a></li>
|
123
|
-
|
124
|
-
<li><a href="../Object.html">Object</a></li>
|
125
|
-
|
126
|
-
<li><a href="../ResqueScheduler.html">ResqueScheduler</a></li>
|
127
|
-
|
128
|
-
</ul>
|
129
|
-
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
130
|
-
</div>
|
71
|
+
<ul class="link-list">
|
72
|
+
|
73
|
+
<li><a href="#method-c-clear">::clear</a>
|
74
|
+
|
75
|
+
<li><a href="#method-c-counter">::counter</a>
|
76
|
+
|
77
|
+
<li><a href="#method-c-counter_key">::counter_key</a>
|
78
|
+
|
79
|
+
<li><a href="#method-c-incr_counter">::incr_counter</a>
|
80
|
+
|
81
|
+
<li><a href="#method-c-status_ids">::status_ids</a>
|
82
|
+
|
83
|
+
<li><a href="#method-i-paused-3F">#paused?</a>
|
84
|
+
|
85
|
+
</ul>
|
86
|
+
</nav>
|
131
87
|
|
132
|
-
|
133
|
-
</div>
|
134
88
|
</div>
|
135
89
|
|
136
|
-
<div id="
|
137
|
-
|
90
|
+
<div id="project-metadata">
|
91
|
+
|
92
|
+
<nav id="classindex-section" class="section project-section">
|
93
|
+
<h3 class="section-header">Class and Module Index</h3>
|
138
94
|
|
139
|
-
|
140
|
-
|
141
|
-
</
|
95
|
+
<ul class="link-list">
|
96
|
+
|
97
|
+
<li><a href="../Resque.html">Resque</a>
|
98
|
+
|
99
|
+
<li><a href="../Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a>
|
100
|
+
|
101
|
+
<li><a href="../Resque/Failure.html">Resque::Failure</a>
|
102
|
+
|
103
|
+
<li><a href="../Resque/Failure/Redis.html">Resque::Failure::Redis</a>
|
104
|
+
|
105
|
+
<li><a href="../Resque/Job.html">Resque::Job</a>
|
106
|
+
|
107
|
+
<li><a href="../Resque/JobWithStatus.html">Resque::JobWithStatus</a>
|
108
|
+
|
109
|
+
<li><a href="../Resque/Status.html">Resque::Status</a>
|
110
|
+
|
111
|
+
<li><a href="../Resque/Worker.html">Resque::Worker</a>
|
112
|
+
|
113
|
+
<li><a href="../ResqueUi.html">ResqueUi</a>
|
114
|
+
|
115
|
+
<li><a href="../ResqueUi/Cap.html">ResqueUi::Cap</a>
|
116
|
+
|
117
|
+
<li><a href="../ResqueUi/Engine.html">ResqueUi::Engine</a>
|
118
|
+
|
119
|
+
<li><a href="../Object.html">Object</a>
|
120
|
+
|
121
|
+
<li><a href="../ResqueScheduler.html">ResqueScheduler</a>
|
122
|
+
|
123
|
+
</ul>
|
124
|
+
</nav>
|
142
125
|
|
126
|
+
</div>
|
127
|
+
</nav>
|
128
|
+
|
129
|
+
<div id="documentation">
|
130
|
+
<h1 class="class">class Resque::Status</h1>
|
131
|
+
|
132
|
+
<div id="description" class="description">
|
143
133
|
|
134
|
+
</div><!-- description -->
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
144
140
|
|
145
|
-
|
146
|
-
<div id="5Buntitled-5D" class="documentation-section">
|
147
|
-
|
148
141
|
|
149
|
-
|
142
|
+
|
150
143
|
|
151
|
-
|
144
|
+
|
152
145
|
|
153
|
-
|
146
|
+
|
154
147
|
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
148
|
+
<!-- Methods -->
|
149
|
+
|
150
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
151
|
+
<h3 class="section-header">Public Class Methods</h3>
|
159
152
|
|
160
|
-
|
161
|
-
|
162
|
-
|
153
|
+
|
154
|
+
<div id="method-c-clear" class="method-detail ">
|
155
|
+
|
156
|
+
<div class="method-heading">
|
157
|
+
<span class="method-name">clear</span><span
|
158
|
+
class="method-args">(range_start = nil, range_end = nil)</span>
|
159
|
+
<span class="method-click-advice">click to toggle source</span>
|
160
|
+
</div>
|
161
|
+
|
163
162
|
|
163
|
+
<div class="method-description">
|
164
164
|
|
165
|
-
<
|
166
|
-
<span class="method-name">clear</span><span
|
167
|
-
class="method-args">(range_start = nil, range_end = nil)</span>
|
168
|
-
<span class="method-click-advice">click to toggle source</span>
|
169
|
-
</div>
|
170
|
-
|
171
|
-
|
172
|
-
<div class="method-description">
|
173
|
-
|
174
|
-
<p>clear statuses from redis passing an optional range. See `statuses` for
|
165
|
+
<p>clear statuses from redis passing an optional range. See `statuses` for
|
175
166
|
info about ranges</p>
|
176
|
-
|
167
|
+
|
177
168
|
|
178
|
-
|
179
|
-
|
180
|
-
<pre>
|
181
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 30</span>
|
169
|
+
|
170
|
+
<div class="method-source-code" id="clear-source">
|
171
|
+
<pre><span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 30</span>
|
182
172
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">clear</span>(<span class="ruby-identifier">range_start</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">range_end</span> = <span class="ruby-keyword">nil</span>)
|
183
173
|
<span class="ruby-identifier">status_ids</span>(<span class="ruby-identifier">range_start</span>, <span class="ruby-identifier">range_end</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">id</span><span class="ruby-operator">|</span>
|
184
174
|
<span class="ruby-identifier">redis</span>.<span class="ruby-identifier">zrem</span>(<span class="ruby-identifier">set_key</span>, <span class="ruby-identifier">id</span>)
|
@@ -187,104 +177,95 @@ info about ranges</p>
|
|
187
177
|
<span class="ruby-keyword">end</span>
|
188
178
|
<span class="ruby-keyword">end</span>
|
189
179
|
<span class="ruby-keyword">end</span></pre>
|
190
|
-
|
191
|
-
|
192
|
-
</div>
|
193
|
-
|
180
|
+
</div><!-- clear-source -->
|
194
181
|
|
182
|
+
</div>
|
195
183
|
|
196
|
-
|
197
|
-
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
</div><!-- clear-method -->
|
198
188
|
|
199
|
-
|
200
|
-
|
201
|
-
|
189
|
+
|
190
|
+
<div id="method-c-counter" class="method-detail ">
|
191
|
+
|
192
|
+
<div class="method-heading">
|
193
|
+
<span class="method-name">counter</span><span
|
194
|
+
class="method-args">(counter, uuid)</span>
|
195
|
+
<span class="method-click-advice">click to toggle source</span>
|
196
|
+
</div>
|
197
|
+
|
202
198
|
|
199
|
+
<div class="method-description">
|
200
|
+
|
203
201
|
|
204
|
-
<div class="method-heading">
|
205
|
-
<span class="method-name">counter</span><span
|
206
|
-
class="method-args">(counter, uuid)</span>
|
207
|
-
<span class="method-click-advice">click to toggle source</span>
|
208
|
-
</div>
|
209
202
|
|
210
203
|
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
<div class="method-source-code" id="counter-source">
|
218
|
-
<pre>
|
219
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 45</span>
|
204
|
+
|
205
|
+
<div class="method-source-code" id="counter-source">
|
206
|
+
<pre><span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 45</span>
|
220
207
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">counter</span>(<span class="ruby-identifier">counter</span>, <span class="ruby-identifier">uuid</span>)
|
221
208
|
<span class="ruby-identifier">redis</span>[<span class="ruby-identifier">counter_key</span>(<span class="ruby-identifier">counter</span>, <span class="ruby-identifier">uuid</span>)].<span class="ruby-identifier">to_i</span>
|
222
209
|
<span class="ruby-keyword">end</span></pre>
|
223
|
-
|
224
|
-
|
225
|
-
</div>
|
226
|
-
|
210
|
+
</div><!-- counter-source -->
|
227
211
|
|
212
|
+
</div>
|
228
213
|
|
229
|
-
|
230
|
-
</div><!-- counter-method -->
|
214
|
+
|
231
215
|
|
232
|
-
|
233
|
-
|
234
|
-
<a name="method-c-counter_key"></a>
|
216
|
+
|
217
|
+
</div><!-- counter-method -->
|
235
218
|
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
219
|
+
|
220
|
+
<div id="method-c-counter_key" class="method-detail ">
|
221
|
+
|
222
|
+
<div class="method-heading">
|
223
|
+
<span class="method-name">counter_key</span><span
|
224
|
+
class="method-args">(counter, uuid)</span>
|
225
|
+
<span class="method-click-advice">click to toggle source</span>
|
226
|
+
</div>
|
227
|
+
|
243
228
|
|
244
|
-
|
245
|
-
|
246
|
-
|
229
|
+
<div class="method-description">
|
230
|
+
|
231
|
+
<p>If multiple workers are running at once and you need an incrementer, you
|
247
232
|
can’t use the status’ num attribute because of race conditions. You can
|
248
233
|
use a counter and call incr on it instead</p>
|
249
|
-
|
234
|
+
|
250
235
|
|
251
|
-
|
252
|
-
|
253
|
-
<pre>
|
254
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 41</span>
|
236
|
+
|
237
|
+
<div class="method-source-code" id="counter_key-source">
|
238
|
+
<pre><span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 41</span>
|
255
239
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">counter_key</span>(<span class="ruby-identifier">counter</span>, <span class="ruby-identifier">uuid</span>)
|
256
240
|
<span class="ruby-node">"#{counter}:#{uuid}"</span>
|
257
241
|
<span class="ruby-keyword">end</span></pre>
|
258
|
-
|
259
|
-
|
260
|
-
</div>
|
261
|
-
|
242
|
+
</div><!-- counter_key-source -->
|
262
243
|
|
244
|
+
</div>
|
263
245
|
|
264
|
-
|
265
|
-
</div><!-- counter_key-method -->
|
246
|
+
|
266
247
|
|
267
|
-
|
268
|
-
|
269
|
-
<a name="method-c-incr_counter"></a>
|
248
|
+
|
249
|
+
</div><!-- counter_key-method -->
|
270
250
|
|
251
|
+
|
252
|
+
<div id="method-c-incr_counter" class="method-detail ">
|
253
|
+
|
254
|
+
<div class="method-heading">
|
255
|
+
<span class="method-name">incr_counter</span><span
|
256
|
+
class="method-args">(counter, uuid)</span>
|
257
|
+
<span class="method-click-advice">click to toggle source</span>
|
258
|
+
</div>
|
259
|
+
|
260
|
+
|
261
|
+
<div class="method-description">
|
262
|
+
|
271
263
|
|
272
|
-
<div class="method-heading">
|
273
|
-
<span class="method-name">incr_counter</span><span
|
274
|
-
class="method-args">(counter, uuid)</span>
|
275
|
-
<span class="method-click-advice">click to toggle source</span>
|
276
|
-
</div>
|
277
264
|
|
278
265
|
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
<div class="method-source-code" id="incr_counter-source">
|
286
|
-
<pre>
|
287
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 49</span>
|
266
|
+
|
267
|
+
<div class="method-source-code" id="incr_counter-source">
|
268
|
+
<pre><span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 49</span>
|
288
269
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">incr_counter</span>(<span class="ruby-identifier">counter</span>, <span class="ruby-identifier">uuid</span>)
|
289
270
|
<span class="ruby-identifier">key</span> = <span class="ruby-identifier">counter_key</span>(<span class="ruby-identifier">counter</span>, <span class="ruby-identifier">uuid</span>)
|
290
271
|
<span class="ruby-identifier">n</span> = <span class="ruby-identifier">redis</span>.<span class="ruby-identifier">incr</span>(<span class="ruby-identifier">key</span>)
|
@@ -293,38 +274,35 @@ use a counter and call incr on it instead</p>
|
|
293
274
|
<span class="ruby-keyword">end</span>
|
294
275
|
<span class="ruby-identifier">n</span>
|
295
276
|
<span class="ruby-keyword">end</span></pre>
|
296
|
-
|
297
|
-
|
298
|
-
</div>
|
299
|
-
|
277
|
+
</div><!-- incr_counter-source -->
|
300
278
|
|
279
|
+
</div>
|
301
280
|
|
302
|
-
|
303
|
-
</div><!-- incr_counter-method -->
|
281
|
+
|
304
282
|
|
305
|
-
|
306
|
-
|
307
|
-
<a name="method-c-status_ids"></a>
|
283
|
+
|
284
|
+
</div><!-- incr_counter-method -->
|
308
285
|
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
286
|
+
|
287
|
+
<div id="method-c-status_ids" class="method-detail ">
|
288
|
+
|
289
|
+
<div class="method-heading">
|
290
|
+
<span class="method-name">status_ids</span><span
|
291
|
+
class="method-args">(range_start = nil, range_end = nil)</span>
|
292
|
+
<span class="method-click-advice">click to toggle source</span>
|
293
|
+
</div>
|
294
|
+
|
316
295
|
|
317
|
-
|
318
|
-
|
319
|
-
|
296
|
+
<div class="method-description">
|
297
|
+
|
298
|
+
<pre>Return the <tt>num</tt> most recent status/job UUIDs in reverse chronological order.</pre>
|
320
299
|
|
321
300
|
<p>override the gem to fix the ordering</p>
|
322
|
-
|
301
|
+
|
323
302
|
|
324
|
-
|
325
|
-
|
326
|
-
<pre>
|
327
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 10</span>
|
303
|
+
|
304
|
+
<div class="method-source-code" id="status_ids-source">
|
305
|
+
<pre><span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 10</span>
|
328
306
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">status_ids</span>(<span class="ruby-identifier">range_start</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">range_end</span> = <span class="ruby-keyword">nil</span>)
|
329
307
|
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">range_end</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">range_start</span>
|
330
308
|
<span class="ruby-comment"># Because we want a reverse chronological order, we need to get a range starting</span>
|
@@ -342,69 +320,63 @@ use a counter and call incr on it instead</p>
|
|
342
320
|
(<span class="ruby-identifier">redis</span>.<span class="ruby-identifier">zrange</span>(<span class="ruby-identifier">set_key</span>, <span class="ruby-operator">-</span>(<span class="ruby-identifier">range_end</span>.<span class="ruby-identifier">abs</span>), <span class="ruby-operator">-</span>(<span class="ruby-identifier">range_start</span>.<span class="ruby-identifier">abs</span>)) <span class="ruby-operator">||</span> []).<span class="ruby-identifier">reverse</span>
|
343
321
|
<span class="ruby-keyword">end</span>
|
344
322
|
<span class="ruby-keyword">end</span></pre>
|
345
|
-
|
346
|
-
|
347
|
-
</div>
|
348
|
-
|
323
|
+
</div><!-- status_ids-source -->
|
349
324
|
|
325
|
+
</div>
|
350
326
|
|
351
|
-
|
352
|
-
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
</div><!-- status_ids-method -->
|
353
331
|
|
354
|
-
|
355
|
-
</div><!-- public-class-method-details -->
|
356
332
|
|
357
|
-
|
358
|
-
|
333
|
+
</section><!-- public-class-method-details -->
|
334
|
+
|
335
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
336
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
359
337
|
|
360
|
-
|
361
|
-
|
362
|
-
|
338
|
+
|
339
|
+
<div id="method-i-paused-3F" class="method-detail ">
|
340
|
+
|
341
|
+
<div class="method-heading">
|
342
|
+
<span class="method-name">paused?</span><span
|
343
|
+
class="method-args">()</span>
|
344
|
+
<span class="method-click-advice">click to toggle source</span>
|
345
|
+
</div>
|
346
|
+
|
363
347
|
|
348
|
+
<div class="method-description">
|
364
349
|
|
365
|
-
<
|
366
|
-
<span class="method-name">paused?</span><span
|
367
|
-
class="method-args">()</span>
|
368
|
-
<span class="method-click-advice">click to toggle source</span>
|
369
|
-
</div>
|
370
|
-
|
371
|
-
|
372
|
-
<div class="method-description">
|
373
|
-
|
374
|
-
<p>The STATUSES constant is frozen, so we’ll just manually add the paused?
|
350
|
+
<p>The STATUSES constant is frozen, so we’ll just manually add the paused?
|
375
351
|
method here</p>
|
376
|
-
|
352
|
+
|
377
353
|
|
378
|
-
|
379
|
-
|
380
|
-
<pre>
|
381
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 4</span>
|
354
|
+
|
355
|
+
<div class="method-source-code" id="paused-3F-source">
|
356
|
+
<pre><span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 4</span>
|
382
357
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">paused?</span>
|
383
358
|
<span class="ruby-keyword">self</span>[<span class="ruby-string">'status'</span>] <span class="ruby-operator">===</span> <span class="ruby-string">'paused'</span>
|
384
359
|
<span class="ruby-keyword">end</span></pre>
|
385
|
-
|
386
|
-
|
387
|
-
</div>
|
388
|
-
|
360
|
+
</div><!-- paused-3F-source -->
|
389
361
|
|
362
|
+
</div>
|
390
363
|
|
391
|
-
|
392
|
-
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
</div><!-- paused-3F-method -->
|
393
368
|
|
394
|
-
|
395
|
-
</div><!-- public-instance-method-details -->
|
396
369
|
|
397
|
-
</
|
370
|
+
</section><!-- public-instance-method-details -->
|
398
371
|
|
372
|
+
</section><!-- 5Buntitled-5D -->
|
399
373
|
|
400
|
-
|
374
|
+
</div><!-- documentation -->
|
401
375
|
|
402
|
-
<div id="validator-badges">
|
403
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
404
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
405
|
-
Rdoc Generator</a> 2</small>.</p>
|
406
|
-
</div>
|
407
376
|
|
408
|
-
|
409
|
-
</
|
377
|
+
<footer id="validator-badges">
|
378
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
379
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.11.
|
380
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
381
|
+
</footer>
|
410
382
|
|