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/ResqueScheduler.html
CHANGED
@@ -1,177 +1,169 @@
|
|
1
|
-
|
2
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
<head>
|
6
|
-
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
1
|
+
<!DOCTYPE html>
|
7
2
|
|
8
|
-
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
9
6
|
|
10
|
-
|
7
|
+
<title>Module: ResqueScheduler</title>
|
11
8
|
|
12
|
-
|
13
|
-
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
-
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
-
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
16
10
|
|
17
|
-
|
18
|
-
|
19
|
-
|
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_scheduler/resque_scheduler_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
-
class="thickbox" title="lib/resque_ui/overrides/resque_scheduler/resque_scheduler.rb">lib/resque_ui/overrides/resque_scheduler/resque_scheduler.rb</a></li>
|
39
|
-
|
40
|
-
</ul>
|
41
|
-
</div>
|
42
|
-
</div>
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
43
14
|
|
44
|
-
|
45
|
-
|
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>
|
46
21
|
|
47
|
-
<div id="class-metadata">
|
48
|
-
|
49
22
|
|
50
|
-
|
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_scheduler/resque_scheduler.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
51
53
|
|
52
|
-
|
54
|
+
|
55
|
+
</div>
|
53
56
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
<li><a href="#method-c-pids">::pids</a></li>
|
63
|
-
|
64
|
-
<li><a href="#method-c-quit">::quit</a></li>
|
65
|
-
|
66
|
-
<li><a href="#method-c-restart">::restart</a></li>
|
67
|
-
|
68
|
-
<li><a href="#method-c-start">::start</a></li>
|
69
|
-
|
70
|
-
<li><a href="#method-i-schedule">#schedule</a></li>
|
71
|
-
|
72
|
-
<li><a href="#method-i-schedule-3D">#schedule=</a></li>
|
73
|
-
|
74
|
-
</ul>
|
75
|
-
</div>
|
76
|
-
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
<!-- Method Quickref -->
|
62
|
+
<nav id="method-list-section" class="section">
|
63
|
+
<h3 class="section-header">Methods</h3>
|
77
64
|
|
78
|
-
|
79
|
-
|
65
|
+
<ul class="link-list">
|
66
|
+
|
67
|
+
<li><a href="#method-c-farm_status">::farm_status</a>
|
68
|
+
|
69
|
+
<li><a href="#method-c-pids">::pids</a>
|
70
|
+
|
71
|
+
<li><a href="#method-c-quit">::quit</a>
|
72
|
+
|
73
|
+
<li><a href="#method-c-restart">::restart</a>
|
74
|
+
|
75
|
+
<li><a href="#method-c-start">::start</a>
|
76
|
+
|
77
|
+
<li><a href="#method-i-schedule">#schedule</a>
|
78
|
+
|
79
|
+
<li><a href="#method-i-schedule-3D">#schedule=</a>
|
80
|
+
|
81
|
+
</ul>
|
82
|
+
</nav>
|
80
83
|
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
+
</div>
|
84
85
|
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
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>
|
86
|
+
<div id="project-metadata">
|
87
|
+
|
88
|
+
<nav id="classindex-section" class="section project-section">
|
89
|
+
<h3 class="section-header">Class and Module Index</h3>
|
97
90
|
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
91
|
+
<ul class="link-list">
|
92
|
+
|
93
|
+
<li><a href="./Resque.html">Resque</a>
|
94
|
+
|
95
|
+
<li><a href="./Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a>
|
96
|
+
|
97
|
+
<li><a href="./Resque/Failure.html">Resque::Failure</a>
|
98
|
+
|
99
|
+
<li><a href="./Resque/Failure/Redis.html">Resque::Failure::Redis</a>
|
100
|
+
|
101
|
+
<li><a href="./Resque/Job.html">Resque::Job</a>
|
102
|
+
|
103
|
+
<li><a href="./Resque/JobWithStatus.html">Resque::JobWithStatus</a>
|
104
|
+
|
105
|
+
<li><a href="./Resque/Status.html">Resque::Status</a>
|
106
|
+
|
107
|
+
<li><a href="./Resque/Worker.html">Resque::Worker</a>
|
108
|
+
|
109
|
+
<li><a href="./ResqueUi.html">ResqueUi</a>
|
110
|
+
|
111
|
+
<li><a href="./ResqueUi/Cap.html">ResqueUi::Cap</a>
|
112
|
+
|
113
|
+
<li><a href="./ResqueUi/Engine.html">ResqueUi::Engine</a>
|
114
|
+
|
115
|
+
<li><a href="./Object.html">Object</a>
|
116
|
+
|
117
|
+
<li><a href="./ResqueScheduler.html">ResqueScheduler</a>
|
118
|
+
|
119
|
+
</ul>
|
120
|
+
</nav>
|
125
121
|
|
126
|
-
|
127
|
-
</div>
|
128
122
|
</div>
|
123
|
+
</nav>
|
129
124
|
|
130
|
-
|
131
|
-
|
125
|
+
<div id="documentation">
|
126
|
+
<h1 class="module">module ResqueScheduler</h1>
|
132
127
|
|
133
|
-
|
134
|
-
|
135
|
-
</div><!-- description -->
|
136
|
-
|
137
|
-
|
128
|
+
<div id="description" class="description">
|
138
129
|
|
130
|
+
</div><!-- description -->
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
139
136
|
|
140
|
-
<div id="5Buntitled-5D" class="documentation-section">
|
141
|
-
|
142
137
|
|
143
|
-
|
138
|
+
|
144
139
|
|
145
|
-
|
140
|
+
|
146
141
|
|
147
|
-
|
142
|
+
|
148
143
|
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
144
|
+
<!-- Methods -->
|
145
|
+
|
146
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
147
|
+
<h3 class="section-header">Public Class Methods</h3>
|
153
148
|
|
154
|
-
|
155
|
-
|
156
|
-
|
149
|
+
|
150
|
+
<div id="method-c-farm_status" class="method-detail ">
|
151
|
+
|
152
|
+
<div class="method-heading">
|
153
|
+
<span class="method-name">farm_status</span><span
|
154
|
+
class="method-args">()</span>
|
155
|
+
<span class="method-click-advice">click to toggle source</span>
|
156
|
+
</div>
|
157
|
+
|
157
158
|
|
159
|
+
<div class="method-description">
|
160
|
+
|
158
161
|
|
159
|
-
<div class="method-heading">
|
160
|
-
<span class="method-name">farm_status</span><span
|
161
|
-
class="method-args">()</span>
|
162
|
-
<span class="method-click-advice">click to toggle source</span>
|
163
|
-
</div>
|
164
162
|
|
165
163
|
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
<div class="method-source-code" id="farm_status-source">
|
173
|
-
<pre>
|
174
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_scheduler/resque_scheduler.rb, line 38</span>
|
164
|
+
|
165
|
+
<div class="method-source-code" id="farm_status-source">
|
166
|
+
<pre><span class="ruby-comment"># File lib/resque_ui/overrides/resque_scheduler/resque_scheduler.rb, line 38</span>
|
175
167
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">farm_status</span>
|
176
168
|
<span class="ruby-identifier">status</span> = {}
|
177
169
|
<span class="ruby-keyword">if</span> <span class="ruby-constant">Rails</span>.<span class="ruby-identifier">env</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/development|test/</span>
|
@@ -184,72 +176,66 @@
|
|
184
176
|
<span class="ruby-keyword">end</span>
|
185
177
|
<span class="ruby-identifier">status</span>
|
186
178
|
<span class="ruby-keyword">end</span></pre>
|
187
|
-
|
188
|
-
|
189
|
-
</div>
|
190
|
-
|
179
|
+
</div><!-- farm_status-source -->
|
191
180
|
|
181
|
+
</div>
|
192
182
|
|
193
|
-
|
194
|
-
</div><!-- farm_status-method -->
|
183
|
+
|
195
184
|
|
196
|
-
|
197
|
-
|
198
|
-
<a name="method-c-pids"></a>
|
185
|
+
|
186
|
+
</div><!-- farm_status-method -->
|
199
187
|
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
188
|
+
|
189
|
+
<div id="method-c-pids" class="method-detail ">
|
190
|
+
|
191
|
+
<div class="method-heading">
|
192
|
+
<span class="method-name">pids</span><span
|
193
|
+
class="method-args">()</span>
|
194
|
+
<span class="method-click-advice">click to toggle source</span>
|
195
|
+
</div>
|
196
|
+
|
207
197
|
|
208
|
-
|
209
|
-
|
210
|
-
|
198
|
+
<div class="method-description">
|
199
|
+
|
200
|
+
<p>Returns an array of string pids of all the other workers on this machine.
|
211
201
|
Useful when pruning dead workers on startup.</p>
|
212
|
-
|
202
|
+
|
213
203
|
|
214
|
-
|
215
|
-
|
216
|
-
<pre>
|
217
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_scheduler/resque_scheduler.rb, line 53</span>
|
204
|
+
|
205
|
+
<div class="method-source-code" id="pids-source">
|
206
|
+
<pre><span class="ruby-comment"># File lib/resque_ui/overrides/resque_scheduler/resque_scheduler.rb, line 53</span>
|
218
207
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">pids</span>
|
219
208
|
<span class="ruby-value">`ps -A -o pid,command | grep [r]esque:scheduler`</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">"\n"</span>).<span class="ruby-identifier">map</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
|
220
209
|
<span class="ruby-identifier">line</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">' '</span>)[<span class="ruby-value">0</span>]
|
221
210
|
<span class="ruby-keyword">end</span>
|
222
211
|
<span class="ruby-keyword">end</span></pre>
|
223
|
-
|
224
|
-
|
225
|
-
</div>
|
226
|
-
|
212
|
+
</div><!-- pids-source -->
|
227
213
|
|
214
|
+
</div>
|
228
215
|
|
229
|
-
|
230
|
-
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
</div><!-- pids-method -->
|
231
220
|
|
232
|
-
|
233
|
-
|
234
|
-
|
221
|
+
|
222
|
+
<div id="method-c-quit" class="method-detail ">
|
223
|
+
|
224
|
+
<div class="method-heading">
|
225
|
+
<span class="method-name">quit</span><span
|
226
|
+
class="method-args">(ips)</span>
|
227
|
+
<span class="method-click-advice">click to toggle source</span>
|
228
|
+
</div>
|
229
|
+
|
235
230
|
|
231
|
+
<div class="method-description">
|
232
|
+
|
236
233
|
|
237
|
-
<div class="method-heading">
|
238
|
-
<span class="method-name">quit</span><span
|
239
|
-
class="method-args">(ips)</span>
|
240
|
-
<span class="method-click-advice">click to toggle source</span>
|
241
|
-
</div>
|
242
234
|
|
243
235
|
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
<div class="method-source-code" id="quit-source">
|
251
|
-
<pre>
|
252
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_scheduler/resque_scheduler.rb, line 25</span>
|
236
|
+
|
237
|
+
<div class="method-source-code" id="quit-source">
|
238
|
+
<pre><span class="ruby-comment"># File lib/resque_ui/overrides/resque_scheduler/resque_scheduler.rb, line 25</span>
|
253
239
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">quit</span>(<span class="ruby-identifier">ips</span>)
|
254
240
|
<span class="ruby-keyword">if</span> <span class="ruby-constant">Rails</span>.<span class="ruby-identifier">env</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/development|test/</span>
|
255
241
|
<span class="ruby-identifier">system</span>(<span class="ruby-string">"rake resque:quit_scheduler"</span>)
|
@@ -257,70 +243,64 @@ Useful when pruning dead workers on startup.</p>
|
|
257
243
|
<span class="ruby-identifier">system</span>(<span class="ruby-node">"cd #{Rails.root}; #{ResqueUi::Cap.path} #{Rails.env} resque:quit_scheduler host=#{ips}"</span>)
|
258
244
|
<span class="ruby-keyword">end</span>
|
259
245
|
<span class="ruby-keyword">end</span></pre>
|
260
|
-
|
261
|
-
|
262
|
-
</div>
|
263
|
-
|
246
|
+
</div><!-- quit-source -->
|
264
247
|
|
248
|
+
</div>
|
265
249
|
|
266
|
-
|
267
|
-
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
</div><!-- quit-method -->
|
268
254
|
|
269
|
-
|
270
|
-
|
271
|
-
|
255
|
+
|
256
|
+
<div id="method-c-restart" class="method-detail ">
|
257
|
+
|
258
|
+
<div class="method-heading">
|
259
|
+
<span class="method-name">restart</span><span
|
260
|
+
class="method-args">(ips)</span>
|
261
|
+
<span class="method-click-advice">click to toggle source</span>
|
262
|
+
</div>
|
263
|
+
|
272
264
|
|
265
|
+
<div class="method-description">
|
266
|
+
|
273
267
|
|
274
|
-
<div class="method-heading">
|
275
|
-
<span class="method-name">restart</span><span
|
276
|
-
class="method-args">(ips)</span>
|
277
|
-
<span class="method-click-advice">click to toggle source</span>
|
278
|
-
</div>
|
279
268
|
|
280
269
|
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
<div class="method-source-code" id="restart-source">
|
288
|
-
<pre>
|
289
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_scheduler/resque_scheduler.rb, line 33</span>
|
270
|
+
|
271
|
+
<div class="method-source-code" id="restart-source">
|
272
|
+
<pre><span class="ruby-comment"># File lib/resque_ui/overrides/resque_scheduler/resque_scheduler.rb, line 33</span>
|
290
273
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">restart</span>(<span class="ruby-identifier">ips</span>)
|
291
274
|
<span class="ruby-identifier">quit</span>(<span class="ruby-identifier">ips</span>)
|
292
275
|
<span class="ruby-identifier">start</span>(<span class="ruby-identifier">ips</span>)
|
293
276
|
<span class="ruby-keyword">end</span></pre>
|
294
|
-
|
295
|
-
|
296
|
-
</div>
|
297
|
-
|
277
|
+
</div><!-- restart-source -->
|
298
278
|
|
279
|
+
</div>
|
299
280
|
|
300
|
-
|
301
|
-
</div><!-- restart-method -->
|
281
|
+
|
302
282
|
|
303
|
-
|
304
|
-
|
305
|
-
<a name="method-c-start"></a>
|
283
|
+
|
284
|
+
</div><!-- restart-method -->
|
306
285
|
|
286
|
+
|
287
|
+
<div id="method-c-start" class="method-detail ">
|
288
|
+
|
289
|
+
<div class="method-heading">
|
290
|
+
<span class="method-name">start</span><span
|
291
|
+
class="method-args">(ips)</span>
|
292
|
+
<span class="method-click-advice">click to toggle source</span>
|
293
|
+
</div>
|
294
|
+
|
295
|
+
|
296
|
+
<div class="method-description">
|
297
|
+
|
307
298
|
|
308
|
-
<div class="method-heading">
|
309
|
-
<span class="method-name">start</span><span
|
310
|
-
class="method-args">(ips)</span>
|
311
|
-
<span class="method-click-advice">click to toggle source</span>
|
312
|
-
</div>
|
313
299
|
|
314
300
|
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
<div class="method-source-code" id="start-source">
|
322
|
-
<pre>
|
323
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_scheduler/resque_scheduler.rb, line 17</span>
|
301
|
+
|
302
|
+
<div class="method-source-code" id="start-source">
|
303
|
+
<pre><span class="ruby-comment"># File lib/resque_ui/overrides/resque_scheduler/resque_scheduler.rb, line 17</span>
|
324
304
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">start</span>(<span class="ruby-identifier">ips</span>)
|
325
305
|
<span class="ruby-keyword">if</span> <span class="ruby-constant">Rails</span>.<span class="ruby-identifier">env</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/development|test/</span>
|
326
306
|
<span class="ruby-constant">Thread</span>.<span class="ruby-identifier">new</span>{<span class="ruby-identifier">system</span>(<span class="ruby-string">"rake resque:scheduler"</span>)}
|
@@ -328,42 +308,39 @@ Useful when pruning dead workers on startup.</p>
|
|
328
308
|
<span class="ruby-constant">Thread</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">ips</span>){<span class="ruby-operator">|</span><span class="ruby-identifier">ip_list</span><span class="ruby-operator">|</span><span class="ruby-identifier">system</span>(<span class="ruby-node">"cd #{Rails.root}; #{ResqueUi::Cap.path} #{Rails.env} resque:scheduler host=#{ip_list}"</span>)}
|
329
309
|
<span class="ruby-keyword">end</span>
|
330
310
|
<span class="ruby-keyword">end</span></pre>
|
331
|
-
|
332
|
-
|
333
|
-
</div>
|
334
|
-
|
311
|
+
</div><!-- start-source -->
|
335
312
|
|
313
|
+
</div>
|
336
314
|
|
337
|
-
|
338
|
-
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
</div><!-- start-method -->
|
339
319
|
|
340
|
-
|
341
|
-
</div><!-- public-class-method-details -->
|
342
320
|
|
343
|
-
|
344
|
-
|
321
|
+
</section><!-- public-class-method-details -->
|
322
|
+
|
323
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
324
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
345
325
|
|
346
|
-
|
347
|
-
|
348
|
-
|
326
|
+
|
327
|
+
<div id="method-i-schedule" class="method-detail ">
|
328
|
+
|
329
|
+
<div class="method-heading">
|
330
|
+
<span class="method-name">schedule</span><span
|
331
|
+
class="method-args">()</span>
|
332
|
+
<span class="method-click-advice">click to toggle source</span>
|
333
|
+
</div>
|
334
|
+
|
349
335
|
|
336
|
+
<div class="method-description">
|
350
337
|
|
351
|
-
<
|
352
|
-
<span class="method-name">schedule</span><span
|
353
|
-
class="method-args">()</span>
|
354
|
-
<span class="method-click-advice">click to toggle source</span>
|
355
|
-
</div>
|
338
|
+
<p>Returns the schedule hash</p>
|
356
339
|
|
357
340
|
|
358
|
-
|
359
|
-
|
360
|
-
<
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
<div class="method-source-code" id="schedule-source">
|
365
|
-
<pre>
|
366
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_scheduler/resque_scheduler.rb, line 7</span>
|
341
|
+
|
342
|
+
<div class="method-source-code" id="schedule-source">
|
343
|
+
<pre><span class="ruby-comment"># File lib/resque_ui/overrides/resque_scheduler/resque_scheduler.rb, line 7</span>
|
367
344
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">schedule</span>
|
368
345
|
<span class="ruby-comment">#the scheduler gem expects a hash, but it's now stored in</span>
|
369
346
|
<span class="ruby-comment">#redis as an array.</span>
|
@@ -373,62 +350,56 @@ Useful when pruning dead workers on startup.</p>
|
|
373
350
|
<span class="ruby-keyword">end</span>
|
374
351
|
<span class="ruby-identifier">hash</span>
|
375
352
|
<span class="ruby-keyword">end</span></pre>
|
376
|
-
|
377
|
-
|
378
|
-
</div>
|
379
|
-
|
353
|
+
</div><!-- schedule-source -->
|
380
354
|
|
355
|
+
</div>
|
381
356
|
|
382
|
-
|
383
|
-
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
</div><!-- schedule-method -->
|
384
361
|
|
385
|
-
|
386
|
-
|
387
|
-
|
362
|
+
|
363
|
+
<div id="method-i-schedule-3D" class="method-detail ">
|
364
|
+
|
365
|
+
<div class="method-heading">
|
366
|
+
<span class="method-name">schedule=</span><span
|
367
|
+
class="method-args">(schedule_hash)</span>
|
368
|
+
<span class="method-click-advice">click to toggle source</span>
|
369
|
+
</div>
|
370
|
+
|
388
371
|
|
372
|
+
<div class="method-description">
|
373
|
+
|
389
374
|
|
390
|
-
<div class="method-heading">
|
391
|
-
<span class="method-name">schedule=</span><span
|
392
|
-
class="method-args">(schedule_hash)</span>
|
393
|
-
<span class="method-click-advice">click to toggle source</span>
|
394
|
-
</div>
|
395
375
|
|
396
376
|
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
<div class="method-source-code" id="schedule-3D-source">
|
404
|
-
<pre>
|
405
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_scheduler/resque_scheduler.rb, line 2</span>
|
377
|
+
|
378
|
+
<div class="method-source-code" id="schedule-3D-source">
|
379
|
+
<pre><span class="ruby-comment"># File lib/resque_ui/overrides/resque_scheduler/resque_scheduler.rb, line 2</span>
|
406
380
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">schedule=</span>(<span class="ruby-identifier">schedule_hash</span>)
|
407
381
|
<span class="ruby-identifier">raise</span> <span class="ruby-string">'not implemented'</span>
|
408
382
|
<span class="ruby-keyword">end</span></pre>
|
409
|
-
|
410
|
-
|
411
|
-
</div>
|
412
|
-
|
383
|
+
</div><!-- schedule-3D-source -->
|
413
384
|
|
385
|
+
</div>
|
414
386
|
|
415
|
-
|
416
|
-
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
</div><!-- schedule-3D-method -->
|
417
391
|
|
418
|
-
|
419
|
-
</div><!-- public-instance-method-details -->
|
420
392
|
|
421
|
-
</
|
393
|
+
</section><!-- public-instance-method-details -->
|
422
394
|
|
395
|
+
</section><!-- 5Buntitled-5D -->
|
423
396
|
|
424
|
-
|
397
|
+
</div><!-- documentation -->
|
425
398
|
|
426
|
-
<div id="validator-badges">
|
427
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
428
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
429
|
-
Rdoc Generator</a> 2</small>.</p>
|
430
|
-
</div>
|
431
399
|
|
432
|
-
|
433
|
-
</
|
400
|
+
<footer id="validator-badges">
|
401
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
402
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.11.
|
403
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
404
|
+
</footer>
|
434
405
|
|