resque_ui 3.2.3 → 3.2.4
Sign up to get free protection for your applications and to get access to all the features.
- 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.html
CHANGED
@@ -1,227 +1,189 @@
|
|
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>Module: Resque</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/job_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
-
class="thickbox" title="lib/resque_ui/overrides/resque/job.rb">lib/resque_ui/overrides/resque/job.rb</a></li>
|
39
|
-
|
40
|
-
<li><a href="./lib/resque_ui/overrides/resque/resque_rb.html?TB_iframe=true&height=550&width=785"
|
41
|
-
class="thickbox" title="lib/resque_ui/overrides/resque/resque.rb">lib/resque_ui/overrides/resque/resque.rb</a></li>
|
42
|
-
|
43
|
-
<li><a href="./lib/resque_ui/overrides/resque/worker_rb.html?TB_iframe=true&height=550&width=785"
|
44
|
-
class="thickbox" title="lib/resque_ui/overrides/resque/worker.rb">lib/resque_ui/overrides/resque/worker.rb</a></li>
|
45
|
-
|
46
|
-
<li><a href="./lib/resque_ui/overrides/resque_status/chained_job_with_status_rb.html?TB_iframe=true&height=550&width=785"
|
47
|
-
class="thickbox" title="lib/resque_ui/overrides/resque_status/chained_job_with_status.rb">lib/resque_ui/overrides/resque_status/chained_job_with_status.rb</a></li>
|
48
|
-
|
49
|
-
<li><a href="./lib/resque_ui/overrides/resque_status/job_with_status_rb.html?TB_iframe=true&height=550&width=785"
|
50
|
-
class="thickbox" title="lib/resque_ui/overrides/resque_status/job_with_status.rb">lib/resque_ui/overrides/resque_status/job_with_status.rb</a></li>
|
51
|
-
|
52
|
-
<li><a href="./lib/resque_ui/overrides/resque_status/status_rb.html?TB_iframe=true&height=550&width=785"
|
53
|
-
class="thickbox" title="lib/resque_ui/overrides/resque_status/status.rb">lib/resque_ui/overrides/resque_status/status.rb</a></li>
|
54
|
-
|
55
|
-
</ul>
|
56
|
-
</div>
|
57
|
-
</div>
|
58
22
|
|
59
|
-
|
60
|
-
|
23
|
+
<body id="top" class="module">
|
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/job.rb
|
51
|
+
<li>lib/resque_ui/overrides/resque/resque.rb
|
52
|
+
<li>lib/resque_ui/overrides/resque/worker.rb
|
53
|
+
<li>lib/resque_ui/overrides/resque/failure/redis.rb
|
54
|
+
<li>lib/resque_ui/overrides/resque_status/chained_job_with_status.rb
|
55
|
+
<li>lib/resque_ui/overrides/resque_status/job_with_status.rb
|
56
|
+
<li>lib/resque_ui/overrides/resque_status/status.rb
|
57
|
+
</ul>
|
58
|
+
</nav>
|
61
59
|
|
62
|
-
|
63
|
-
|
60
|
+
|
61
|
+
</div>
|
64
62
|
|
65
|
-
|
63
|
+
<div id="class-metadata">
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<nav id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
66
70
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<li><span class="type">CLASS</span> <a href="Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a></li>
|
74
|
-
|
75
|
-
<li><span class="type">CLASS</span> <a href="Resque/Job.html">Resque::Job</a></li>
|
76
|
-
|
77
|
-
<li><span class="type">CLASS</span> <a href="Resque/JobWithStatus.html">Resque::JobWithStatus</a></li>
|
78
|
-
|
79
|
-
<li><span class="type">CLASS</span> <a href="Resque/Status.html">Resque::Status</a></li>
|
80
|
-
|
81
|
-
<li><span class="type">CLASS</span> <a href="Resque/Worker.html">Resque::Worker</a></li>
|
82
|
-
|
83
|
-
</ul>
|
84
|
-
</div>
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
<!-- Method Quickref -->
|
89
|
-
<div id="method-list-section" class="section">
|
90
|
-
<h3 class="section-header">Methods</h3>
|
91
|
-
<ul class="link-list">
|
92
|
-
|
93
|
-
<li><a href="#method-c-throttle">::throttle</a></li>
|
94
|
-
|
95
|
-
</ul>
|
96
|
-
</div>
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
</div>
|
101
|
-
|
102
|
-
<div id="project-metadata">
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
<div id="classindex-section" class="section project-section">
|
107
|
-
<h3 class="section-header">Class/Module Index
|
108
|
-
<span class="search-toggle"><img src="./images/find.png"
|
109
|
-
height="16" width="16" alt="[+]"
|
110
|
-
title="show/hide quicksearch" /></span></h3>
|
111
|
-
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
112
|
-
<fieldset>
|
113
|
-
<legend>Quicksearch</legend>
|
114
|
-
<input type="text" name="quicksearch" value=""
|
115
|
-
class="quicksearch-field" />
|
116
|
-
</fieldset>
|
117
|
-
</form>
|
118
|
-
|
119
|
-
<ul class="link-list">
|
120
|
-
|
121
|
-
<li><a href="./Resque.html">Resque</a></li>
|
122
|
-
|
123
|
-
<li><a href="./Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a></li>
|
124
|
-
|
125
|
-
<li><a href="./Resque/Job.html">Resque::Job</a></li>
|
126
|
-
|
127
|
-
<li><a href="./Resque/JobWithStatus.html">Resque::JobWithStatus</a></li>
|
128
|
-
|
129
|
-
<li><a href="./Resque/Status.html">Resque::Status</a></li>
|
130
|
-
|
131
|
-
<li><a href="./Resque/Worker.html">Resque::Worker</a></li>
|
132
|
-
|
133
|
-
<li><a href="./ResqueUi.html">ResqueUi</a></li>
|
134
|
-
|
135
|
-
<li><a href="./ResqueUi/Cap.html">ResqueUi::Cap</a></li>
|
136
|
-
|
137
|
-
<li><a href="./ResqueUi/Engine.html">ResqueUi::Engine</a></li>
|
138
|
-
|
139
|
-
<li><a href="./Object.html">Object</a></li>
|
140
|
-
|
141
|
-
<li><a href="./ResqueScheduler.html">ResqueScheduler</a></li>
|
142
|
-
|
143
|
-
</ul>
|
144
|
-
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
145
|
-
</div>
|
71
|
+
<ul class="link-list">
|
72
|
+
|
73
|
+
<li><a href="#method-c-throttle">::throttle</a>
|
74
|
+
|
75
|
+
</ul>
|
76
|
+
</nav>
|
146
77
|
|
147
|
-
|
148
|
-
</div>
|
149
78
|
</div>
|
150
79
|
|
151
|
-
<div id="
|
152
|
-
|
80
|
+
<div id="project-metadata">
|
81
|
+
|
82
|
+
<nav id="classindex-section" class="section project-section">
|
83
|
+
<h3 class="section-header">Class and Module Index</h3>
|
153
84
|
|
154
|
-
|
155
|
-
|
156
|
-
</
|
85
|
+
<ul class="link-list">
|
86
|
+
|
87
|
+
<li><a href="./Resque.html">Resque</a>
|
88
|
+
|
89
|
+
<li><a href="./Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a>
|
90
|
+
|
91
|
+
<li><a href="./Resque/Failure.html">Resque::Failure</a>
|
92
|
+
|
93
|
+
<li><a href="./Resque/Failure/Redis.html">Resque::Failure::Redis</a>
|
94
|
+
|
95
|
+
<li><a href="./Resque/Job.html">Resque::Job</a>
|
96
|
+
|
97
|
+
<li><a href="./Resque/JobWithStatus.html">Resque::JobWithStatus</a>
|
98
|
+
|
99
|
+
<li><a href="./Resque/Status.html">Resque::Status</a>
|
100
|
+
|
101
|
+
<li><a href="./Resque/Worker.html">Resque::Worker</a>
|
102
|
+
|
103
|
+
<li><a href="./ResqueUi.html">ResqueUi</a>
|
104
|
+
|
105
|
+
<li><a href="./ResqueUi/Cap.html">ResqueUi::Cap</a>
|
106
|
+
|
107
|
+
<li><a href="./ResqueUi/Engine.html">ResqueUi::Engine</a>
|
108
|
+
|
109
|
+
<li><a href="./Object.html">Object</a>
|
110
|
+
|
111
|
+
<li><a href="./ResqueScheduler.html">ResqueScheduler</a>
|
112
|
+
|
113
|
+
</ul>
|
114
|
+
</nav>
|
157
115
|
|
116
|
+
</div>
|
117
|
+
</nav>
|
118
|
+
|
119
|
+
<div id="documentation">
|
120
|
+
<h1 class="module">module Resque</h1>
|
121
|
+
|
122
|
+
<div id="description" class="description">
|
158
123
|
|
124
|
+
</div><!-- description -->
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
159
130
|
|
160
|
-
|
161
|
-
<div id="5Buntitled-5D" class="documentation-section">
|
162
|
-
|
163
131
|
|
164
|
-
|
132
|
+
|
165
133
|
|
166
|
-
|
134
|
+
|
167
135
|
|
168
|
-
|
136
|
+
|
169
137
|
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
138
|
+
<!-- Methods -->
|
139
|
+
|
140
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
141
|
+
<h3 class="section-header">Public Class Methods</h3>
|
174
142
|
|
175
|
-
|
176
|
-
|
177
|
-
|
143
|
+
|
144
|
+
<div id="method-c-throttle" class="method-detail ">
|
145
|
+
|
146
|
+
<div class="method-heading">
|
147
|
+
<span class="method-name">throttle</span><span
|
148
|
+
class="method-args">(queue, limit = 10000, sleep_for = 60)</span>
|
149
|
+
<span class="method-click-advice">click to toggle source</span>
|
150
|
+
</div>
|
151
|
+
|
178
152
|
|
153
|
+
<div class="method-description">
|
154
|
+
|
179
155
|
|
180
|
-
<div class="method-heading">
|
181
|
-
<span class="method-name">throttle</span><span
|
182
|
-
class="method-args">(queue, limit = 10000, sleep_for = 60)</span>
|
183
|
-
<span class="method-click-advice">click to toggle source</span>
|
184
|
-
</div>
|
185
156
|
|
186
157
|
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
<div class="method-source-code" id="throttle-source">
|
194
|
-
<pre>
|
195
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque/resque.rb, line 2</span>
|
158
|
+
|
159
|
+
<div class="method-source-code" id="throttle-source">
|
160
|
+
<pre><span class="ruby-comment"># File lib/resque_ui/overrides/resque/resque.rb, line 2</span>
|
196
161
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">throttle</span>(<span class="ruby-identifier">queue</span>, <span class="ruby-identifier">limit</span> = <span class="ruby-value">10000</span>, <span class="ruby-identifier">sleep_for</span> = <span class="ruby-value">60</span>)
|
197
162
|
<span class="ruby-identifier">loop</span> <span class="ruby-keyword">do</span>
|
198
163
|
<span class="ruby-keyword">break</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">Resque</span>.<span class="ruby-identifier">size</span>(<span class="ruby-identifier">queue</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-operator"><</span> <span class="ruby-identifier">limit</span>
|
199
164
|
<span class="ruby-identifier">sleep</span> <span class="ruby-identifier">sleep_for</span>
|
200
165
|
<span class="ruby-keyword">end</span>
|
201
166
|
<span class="ruby-keyword">end</span></pre>
|
202
|
-
|
203
|
-
|
204
|
-
</div>
|
205
|
-
|
167
|
+
</div><!-- throttle-source -->
|
206
168
|
|
169
|
+
</div>
|
207
170
|
|
208
|
-
|
209
|
-
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
</div><!-- throttle-method -->
|
210
175
|
|
211
|
-
|
212
|
-
</div><!-- public-class-method-details -->
|
213
176
|
|
214
|
-
</
|
177
|
+
</section><!-- public-class-method-details -->
|
215
178
|
|
179
|
+
</section><!-- 5Buntitled-5D -->
|
216
180
|
|
217
|
-
|
181
|
+
</div><!-- documentation -->
|
218
182
|
|
219
|
-
<div id="validator-badges">
|
220
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
221
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
222
|
-
Rdoc Generator</a> 2</small>.</p>
|
223
|
-
</div>
|
224
183
|
|
225
|
-
|
226
|
-
</
|
184
|
+
<footer id="validator-badges">
|
185
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
186
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.11.
|
187
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
188
|
+
</footer>
|
227
189
|
|
@@ -1,177 +1,167 @@
|
|
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::ChainedJobWithStatus</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/chained_job_with_status_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
-
class="thickbox" title="lib/resque_ui/overrides/resque_status/chained_job_with_status.rb">lib/resque_ui/overrides/resque_status/chained_job_with_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/chained_job_with_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">JobWithStatus</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">JobWithStatus
|
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
|
-
<li><a href="#method-i-name">#name</a></li>
|
73
|
-
|
74
|
-
</ul>
|
75
|
-
</div>
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
</div>
|
80
|
-
|
81
|
-
<div id="project-metadata">
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
<div id="classindex-section" class="section project-section">
|
86
|
-
<h3 class="section-header">Class/Module Index
|
87
|
-
<span class="search-toggle"><img src="../images/find.png"
|
88
|
-
height="16" width="16" alt="[+]"
|
89
|
-
title="show/hide quicksearch" /></span></h3>
|
90
|
-
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
91
|
-
<fieldset>
|
92
|
-
<legend>Quicksearch</legend>
|
93
|
-
<input type="text" name="quicksearch" value=""
|
94
|
-
class="quicksearch-field" />
|
95
|
-
</fieldset>
|
96
|
-
</form>
|
97
|
-
|
98
|
-
<ul class="link-list">
|
99
|
-
|
100
|
-
<li><a href="../Resque.html">Resque</a></li>
|
101
|
-
|
102
|
-
<li><a href="../Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a></li>
|
103
|
-
|
104
|
-
<li><a href="../Resque/Job.html">Resque::Job</a></li>
|
105
|
-
|
106
|
-
<li><a href="../Resque/JobWithStatus.html">Resque::JobWithStatus</a></li>
|
107
|
-
|
108
|
-
<li><a href="../Resque/Status.html">Resque::Status</a></li>
|
109
|
-
|
110
|
-
<li><a href="../Resque/Worker.html">Resque::Worker</a></li>
|
111
|
-
|
112
|
-
<li><a href="../ResqueUi.html">ResqueUi</a></li>
|
113
|
-
|
114
|
-
<li><a href="../ResqueUi/Cap.html">ResqueUi::Cap</a></li>
|
115
|
-
|
116
|
-
<li><a href="../ResqueUi/Engine.html">ResqueUi::Engine</a></li>
|
117
|
-
|
118
|
-
<li><a href="../Object.html">Object</a></li>
|
119
|
-
|
120
|
-
<li><a href="../ResqueScheduler.html">ResqueScheduler</a></li>
|
121
|
-
|
122
|
-
</ul>
|
123
|
-
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
124
|
-
</div>
|
71
|
+
<ul class="link-list">
|
72
|
+
|
73
|
+
<li><a href="#method-c-enqueue">::enqueue</a>
|
74
|
+
|
75
|
+
<li><a href="#method-i-completed">#completed</a>
|
76
|
+
|
77
|
+
<li><a href="#method-i-name">#name</a>
|
78
|
+
|
79
|
+
</ul>
|
80
|
+
</nav>
|
125
81
|
|
126
|
-
|
127
|
-
</div>
|
128
82
|
</div>
|
129
83
|
|
130
|
-
<div id="
|
131
|
-
|
84
|
+
<div id="project-metadata">
|
85
|
+
|
86
|
+
<nav id="classindex-section" class="section project-section">
|
87
|
+
<h3 class="section-header">Class and Module Index</h3>
|
132
88
|
|
133
|
-
|
134
|
-
|
135
|
-
</
|
89
|
+
<ul class="link-list">
|
90
|
+
|
91
|
+
<li><a href="../Resque.html">Resque</a>
|
92
|
+
|
93
|
+
<li><a href="../Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a>
|
94
|
+
|
95
|
+
<li><a href="../Resque/Failure.html">Resque::Failure</a>
|
96
|
+
|
97
|
+
<li><a href="../Resque/Failure/Redis.html">Resque::Failure::Redis</a>
|
98
|
+
|
99
|
+
<li><a href="../Resque/Job.html">Resque::Job</a>
|
100
|
+
|
101
|
+
<li><a href="../Resque/JobWithStatus.html">Resque::JobWithStatus</a>
|
102
|
+
|
103
|
+
<li><a href="../Resque/Status.html">Resque::Status</a>
|
104
|
+
|
105
|
+
<li><a href="../Resque/Worker.html">Resque::Worker</a>
|
106
|
+
|
107
|
+
<li><a href="../ResqueUi.html">ResqueUi</a>
|
108
|
+
|
109
|
+
<li><a href="../ResqueUi/Cap.html">ResqueUi::Cap</a>
|
110
|
+
|
111
|
+
<li><a href="../ResqueUi/Engine.html">ResqueUi::Engine</a>
|
112
|
+
|
113
|
+
<li><a href="../Object.html">Object</a>
|
114
|
+
|
115
|
+
<li><a href="../ResqueScheduler.html">ResqueScheduler</a>
|
116
|
+
|
117
|
+
</ul>
|
118
|
+
</nav>
|
136
119
|
|
120
|
+
</div>
|
121
|
+
</nav>
|
122
|
+
|
123
|
+
<div id="documentation">
|
124
|
+
<h1 class="class">class Resque::ChainedJobWithStatus</h1>
|
125
|
+
|
126
|
+
<div id="description" class="description">
|
137
127
|
|
128
|
+
</div><!-- description -->
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
138
134
|
|
139
|
-
|
140
|
-
<div id="5Buntitled-5D" class="documentation-section">
|
141
|
-
|
142
135
|
|
143
|
-
|
136
|
+
|
144
137
|
|
145
|
-
|
138
|
+
|
146
139
|
|
147
|
-
|
140
|
+
|
148
141
|
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
142
|
+
<!-- Methods -->
|
143
|
+
|
144
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
145
|
+
<h3 class="section-header">Public Class Methods</h3>
|
153
146
|
|
154
|
-
|
155
|
-
|
156
|
-
|
147
|
+
|
148
|
+
<div id="method-c-enqueue" class="method-detail ">
|
149
|
+
|
150
|
+
<div class="method-heading">
|
151
|
+
<span class="method-name">enqueue</span><span
|
152
|
+
class="method-args">(klass, options = {})</span>
|
153
|
+
<span class="method-click-advice">click to toggle source</span>
|
154
|
+
</div>
|
155
|
+
|
157
156
|
|
157
|
+
<div class="method-description">
|
158
|
+
|
158
159
|
|
159
|
-
<div class="method-heading">
|
160
|
-
<span class="method-name">enqueue</span><span
|
161
|
-
class="method-args">(klass, options = {})</span>
|
162
|
-
<span class="method-click-advice">click to toggle source</span>
|
163
|
-
</div>
|
164
160
|
|
165
161
|
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
<div class="method-source-code" id="enqueue-source">
|
173
|
-
<pre>
|
174
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/chained_job_with_status.rb, line 15</span>
|
162
|
+
|
163
|
+
<div class="method-source-code" id="enqueue-source">
|
164
|
+
<pre><span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/chained_job_with_status.rb, line 15</span>
|
175
165
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">enqueue</span>(<span class="ruby-identifier">klass</span>, <span class="ruby-identifier">options</span> = {})
|
176
166
|
<span class="ruby-comment">#tie this job to the status of the calling job</span>
|
177
167
|
<span class="ruby-identifier">opts</span> = <span class="ruby-constant">HashWithIndifferentAccess</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>)
|
@@ -180,42 +170,39 @@
|
|
180
170
|
<span class="ruby-constant">Resque</span>.<span class="ruby-identifier">enqueue</span>(<span class="ruby-identifier">klass</span>, <span class="ruby-identifier">uuid</span>, <span class="ruby-identifier">options</span>)
|
181
171
|
<span class="ruby-identifier">uuid</span>
|
182
172
|
<span class="ruby-keyword">end</span></pre>
|
183
|
-
|
184
|
-
|
185
|
-
</div>
|
186
|
-
|
173
|
+
</div><!-- enqueue-source -->
|
187
174
|
|
175
|
+
</div>
|
188
176
|
|
189
|
-
|
190
|
-
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
</div><!-- enqueue-method -->
|
191
181
|
|
192
|
-
|
193
|
-
</div><!-- public-class-method-details -->
|
194
182
|
|
195
|
-
|
196
|
-
|
183
|
+
</section><!-- public-class-method-details -->
|
184
|
+
|
185
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
186
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
197
187
|
|
198
|
-
|
199
|
-
|
200
|
-
|
188
|
+
|
189
|
+
<div id="method-i-completed" class="method-detail ">
|
190
|
+
|
191
|
+
<div class="method-heading">
|
192
|
+
<span class="method-name">completed</span><span
|
193
|
+
class="method-args">(*messages)</span>
|
194
|
+
<span class="method-click-advice">click to toggle source</span>
|
195
|
+
</div>
|
196
|
+
|
201
197
|
|
198
|
+
<div class="method-description">
|
199
|
+
|
202
200
|
|
203
|
-
<div class="method-heading">
|
204
|
-
<span class="method-name">completed</span><span
|
205
|
-
class="method-args">(*messages)</span>
|
206
|
-
<span class="method-click-advice">click to toggle source</span>
|
207
|
-
</div>
|
208
201
|
|
209
202
|
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
<div class="method-source-code" id="completed-source">
|
217
|
-
<pre>
|
218
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/chained_job_with_status.rb, line 7</span>
|
203
|
+
|
204
|
+
<div class="method-source-code" id="completed-source">
|
205
|
+
<pre><span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/chained_job_with_status.rb, line 7</span>
|
219
206
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">completed</span>(*<span class="ruby-identifier">messages</span>)
|
220
207
|
<span class="ruby-keyword">super</span>(*<span class="ruby-identifier">messages</span>)
|
221
208
|
<span class="ruby-comment"># "You must override this method to provide your own logic of when to actually call complete."</span>
|
@@ -223,62 +210,56 @@
|
|
223
210
|
<span class="ruby-comment"># super</span>
|
224
211
|
<span class="ruby-comment"># end</span>
|
225
212
|
<span class="ruby-keyword">end</span></pre>
|
226
|
-
|
227
|
-
|
228
|
-
</div>
|
229
|
-
|
213
|
+
</div><!-- completed-source -->
|
230
214
|
|
215
|
+
</div>
|
231
216
|
|
232
|
-
|
233
|
-
</div><!-- completed-method -->
|
217
|
+
|
234
218
|
|
235
|
-
|
236
|
-
|
237
|
-
<a name="method-i-name"></a>
|
219
|
+
|
220
|
+
</div><!-- completed-method -->
|
238
221
|
|
222
|
+
|
223
|
+
<div id="method-i-name" class="method-detail ">
|
224
|
+
|
225
|
+
<div class="method-heading">
|
226
|
+
<span class="method-name">name</span><span
|
227
|
+
class="method-args">()</span>
|
228
|
+
<span class="method-click-advice">click to toggle source</span>
|
229
|
+
</div>
|
230
|
+
|
231
|
+
|
232
|
+
<div class="method-description">
|
233
|
+
|
239
234
|
|
240
|
-
<div class="method-heading">
|
241
|
-
<span class="method-name">name</span><span
|
242
|
-
class="method-args">()</span>
|
243
|
-
<span class="method-click-advice">click to toggle source</span>
|
244
|
-
</div>
|
245
235
|
|
246
236
|
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
<div class="method-source-code" id="name-source">
|
254
|
-
<pre>
|
255
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/chained_job_with_status.rb, line 3</span>
|
237
|
+
|
238
|
+
<div class="method-source-code" id="name-source">
|
239
|
+
<pre><span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/chained_job_with_status.rb, line 3</span>
|
256
240
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">name</span>
|
257
241
|
<span class="ruby-identifier">status</span>.<span class="ruby-identifier">name</span> <span class="ruby-keyword">rescue</span> <span class="ruby-keyword">nil</span>
|
258
242
|
<span class="ruby-keyword">end</span></pre>
|
259
|
-
|
260
|
-
|
261
|
-
</div>
|
262
|
-
|
243
|
+
</div><!-- name-source -->
|
263
244
|
|
245
|
+
</div>
|
264
246
|
|
265
|
-
|
266
|
-
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
</div><!-- name-method -->
|
267
251
|
|
268
|
-
|
269
|
-
</div><!-- public-instance-method-details -->
|
270
252
|
|
271
|
-
</
|
253
|
+
</section><!-- public-instance-method-details -->
|
272
254
|
|
255
|
+
</section><!-- 5Buntitled-5D -->
|
273
256
|
|
274
|
-
|
257
|
+
</div><!-- documentation -->
|
275
258
|
|
276
|
-
<div id="validator-badges">
|
277
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
278
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
279
|
-
Rdoc Generator</a> 2</small>.</p>
|
280
|
-
</div>
|
281
259
|
|
282
|
-
|
283
|
-
</
|
260
|
+
<footer id="validator-badges">
|
261
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
262
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.11.
|
263
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
264
|
+
</footer>
|
284
265
|
|