resque_ui 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/VERSION.yml +1 -1
- data/lib/resque_ui/overrides/resque_status/job_with_status.rb +1 -1
- data/rdoc/Resque/Job.html +1 -1
- data/rdoc/Resque/JobWithStatus.html +1 -1
- data/rdoc/Resque/Status.html +6 -6
- data/rdoc/Resque/Worker.html +1 -1
- data/rdoc/created.rid +5 -5
- 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 +1 -1
- data/rdoc/lib/resque_ui/overrides/resque/job_rb.html +2 -2
- data/rdoc/lib/resque_ui/overrides/resque/resque_rb.html +1 -1
- data/rdoc/lib/resque_ui/overrides/resque/worker_rb.html +2 -2
- 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 +2 -2
- data/rdoc/lib/resque_ui/overrides/resque_status/status_rb.html +2 -2
- data/rdoc/lib/resque_ui_rb.html +1 -1
- data/resque_ui.gemspec +1 -1
- metadata +1 -1
data/History.txt
CHANGED
data/VERSION.yml
CHANGED
@@ -56,7 +56,7 @@ module Resque
|
|
56
56
|
# OVERRIDE to pass the block in order to set the worker status, returns the worker object
|
57
57
|
def self.perform(uuid=nil, options = {})
|
58
58
|
uuid ||= Resque::Status.generate_uuid
|
59
|
-
worker = yield
|
59
|
+
worker = yield if block_given?
|
60
60
|
instance = new(uuid, worker, options)
|
61
61
|
instance.safe_perform! { |status| yield status if block_given? }
|
62
62
|
instance
|
data/rdoc/Resque/Job.html
CHANGED
@@ -170,7 +170,7 @@ message can be yielded back to be set in the worker.</p>
|
|
170
170
|
|
171
171
|
<div class="method-source-code" id="perform-source">
|
172
172
|
<pre>
|
173
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque/job.rb, line
|
173
|
+
<span class="ruby-comment"># File lib/resque_ui/overrides/resque/job.rb, line 7</span>
|
174
174
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">perform</span>
|
175
175
|
<span class="ruby-identifier">job</span> = <span class="ruby-identifier">payload_class</span>
|
176
176
|
<span class="ruby-identifier">job_args</span> = <span class="ruby-identifier">args</span> <span class="ruby-operator">||</span> []
|
@@ -288,7 +288,7 @@ returns the worker object</p>
|
|
288
288
|
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/job_with_status.rb, line 57</span>
|
289
289
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">perform</span>(<span class="ruby-identifier">uuid</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">options</span> = {})
|
290
290
|
<span class="ruby-identifier">uuid</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Resque</span><span class="ruby-operator">::</span><span class="ruby-constant">Status</span>.<span class="ruby-identifier">generate_uuid</span>
|
291
|
-
<span class="ruby-identifier">worker</span> = <span class="ruby-keyword">yield</span>
|
291
|
+
<span class="ruby-identifier">worker</span> = <span class="ruby-keyword">yield</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">block_given?</span>
|
292
292
|
<span class="ruby-identifier">instance</span> = <span class="ruby-identifier">new</span>(<span class="ruby-identifier">uuid</span>, <span class="ruby-identifier">worker</span>, <span class="ruby-identifier">options</span>)
|
293
293
|
<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">safe_perform!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">status</span><span class="ruby-operator">|</span> <span class="ruby-keyword">yield</span> <span class="ruby-identifier">status</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">block_given?</span> }
|
294
294
|
<span class="ruby-identifier">instance</span>
|
data/rdoc/Resque/Status.html
CHANGED
@@ -178,7 +178,7 @@ info about ranges</p>
|
|
178
178
|
|
179
179
|
<div class="method-source-code" id="clear-source">
|
180
180
|
<pre>
|
181
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line
|
181
|
+
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 30</span>
|
182
182
|
<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
183
|
<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
184
|
<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>)
|
@@ -216,7 +216,7 @@ info about ranges</p>
|
|
216
216
|
|
217
217
|
<div class="method-source-code" id="counter-source">
|
218
218
|
<pre>
|
219
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line
|
219
|
+
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 45</span>
|
220
220
|
<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
221
|
<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
222
|
<span class="ruby-keyword">end</span></pre>
|
@@ -251,7 +251,7 @@ use a counter and call incr on it instead</p>
|
|
251
251
|
|
252
252
|
<div class="method-source-code" id="counter_key-source">
|
253
253
|
<pre>
|
254
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line
|
254
|
+
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 41</span>
|
255
255
|
<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
256
|
<span class="ruby-node">"#{counter}:#{uuid}"</span>
|
257
257
|
<span class="ruby-keyword">end</span></pre>
|
@@ -284,7 +284,7 @@ use a counter and call incr on it instead</p>
|
|
284
284
|
|
285
285
|
<div class="method-source-code" id="incr_counter-source">
|
286
286
|
<pre>
|
287
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line
|
287
|
+
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 49</span>
|
288
288
|
<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
289
|
<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
290
|
<span class="ruby-identifier">n</span> = <span class="ruby-identifier">redis</span>.<span class="ruby-identifier">incr</span>(<span class="ruby-identifier">key</span>)
|
@@ -324,7 +324,7 @@ use a counter and call incr on it instead</p>
|
|
324
324
|
|
325
325
|
<div class="method-source-code" id="status_ids-source">
|
326
326
|
<pre>
|
327
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line
|
327
|
+
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 10</span>
|
328
328
|
<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
329
|
<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
330
|
<span class="ruby-comment"># Because we want a reverse chronological order, we need to get a range starting</span>
|
@@ -378,7 +378,7 @@ method here</p>
|
|
378
378
|
|
379
379
|
<div class="method-source-code" id="paused-3F-source">
|
380
380
|
<pre>
|
381
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line
|
381
|
+
<span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 4</span>
|
382
382
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">paused?</span>
|
383
383
|
<span class="ruby-keyword">self</span>[<span class="ruby-string">'status'</span>] <span class="ruby-operator">===</span> <span class="ruby-string">'paused'</span>
|
384
384
|
<span class="ruby-keyword">end</span></pre>
|
data/rdoc/Resque/Worker.html
CHANGED
@@ -514,7 +514,7 @@ the thread and queue portion</p>
|
|
514
514
|
|
515
515
|
<div class="method-source-code" id="pause_key-source">
|
516
516
|
<pre>
|
517
|
-
<span class="ruby-comment"># File lib/resque_ui/overrides/resque/worker.rb, line
|
517
|
+
<span class="ruby-comment"># File lib/resque_ui/overrides/resque/worker.rb, line 26</span>
|
518
518
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">pause_key</span>
|
519
519
|
<span class="ruby-identifier">key</span> = <span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">':'</span>)
|
520
520
|
<span class="ruby-node">"worker:#{key.first}:#{key.second}:all_workers:paused"</span>
|
data/rdoc/created.rid
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
Mon, 14 Nov 2011
|
1
|
+
Mon, 14 Nov 2011 16:06:59 -0500
|
2
2
|
README.markdown Mon, 14 Nov 2011 15:34:09 -0500
|
3
3
|
lib/resque_ui.rb Thu, 10 Nov 2011 11:09:00 -0500
|
4
4
|
lib/resque_ui/cap.rb Wed, 14 Sep 2011 16:39:33 -0400
|
5
5
|
lib/resque_ui/cap_recipes.rb Wed, 09 Nov 2011 13:52:53 -0500
|
6
|
-
lib/resque_ui/overrides/resque/job.rb Mon, 14 Nov 2011
|
6
|
+
lib/resque_ui/overrides/resque/job.rb Mon, 14 Nov 2011 15:39:13 -0500
|
7
7
|
lib/resque_ui/overrides/resque/resque.rb Thu, 15 Sep 2011 12:15:57 -0400
|
8
|
-
lib/resque_ui/overrides/resque/worker.rb
|
8
|
+
lib/resque_ui/overrides/resque/worker.rb Mon, 14 Nov 2011 15:41:51 -0500
|
9
9
|
lib/resque_ui/overrides/resque_scheduler/resque_scheduler.rb Thu, 15 Sep 2011 11:57:02 -0400
|
10
10
|
lib/resque_ui/overrides/resque_status/chained_job_with_status.rb Thu, 15 Sep 2011 12:06:19 -0400
|
11
|
-
lib/resque_ui/overrides/resque_status/job_with_status.rb Mon, 14 Nov 2011 15:
|
12
|
-
lib/resque_ui/overrides/resque_status/status.rb Mon, 14 Nov 2011
|
11
|
+
lib/resque_ui/overrides/resque_status/job_with_status.rb Mon, 14 Nov 2011 15:58:20 -0500
|
12
|
+
lib/resque_ui/overrides/resque_status/status.rb Mon, 14 Nov 2011 15:41:51 -0500
|
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.2.
|
9
|
+
<title>ResqueUi 3.2.1</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.2.
|
22
|
+
<h1>ResqueUi 3.2.1</h1>
|
23
23
|
|
24
24
|
|
25
|
-
<p>This is the API documentation for 'ResqueUi 3.2.
|
25
|
+
<p>This is the API documentation for 'ResqueUi 3.2.1'.</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.2.
|
9
|
+
<title>File: cap_recipes.rb [ResqueUi 3.2.1]</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.rb [ResqueUi 3.2.
|
9
|
+
<title>File: job.rb [ResqueUi 3.2.1]</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">Mon Nov 14
|
27
|
+
<dd class="modified-date">Mon Nov 14 15:39:13 -0500 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: resque.rb [ResqueUi 3.2.
|
9
|
+
<title>File: resque.rb [ResqueUi 3.2.1]</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.2.
|
9
|
+
<title>File: worker.rb [ResqueUi 3.2.1]</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">
|
27
|
+
<dd class="modified-date">Mon Nov 14 15:41:51 -0500 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: resque_scheduler.rb [ResqueUi 3.2.
|
9
|
+
<title>File: resque_scheduler.rb [ResqueUi 3.2.1]</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.2.
|
9
|
+
<title>File: chained_job_with_status.rb [ResqueUi 3.2.1]</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.2.
|
9
|
+
<title>File: job_with_status.rb [ResqueUi 3.2.1]</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">Mon Nov 14 15:
|
27
|
+
<dd class="modified-date">Mon Nov 14 15:58:20 -0500 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: status.rb [ResqueUi 3.2.
|
9
|
+
<title>File: status.rb [ResqueUi 3.2.1]</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">Mon Nov 14
|
27
|
+
<dd class="modified-date">Mon Nov 14 15:41:51 -0500 2011</dd>
|
28
28
|
|
29
29
|
|
30
30
|
<dt class="requires">Requires</dt>
|
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.2.
|
9
|
+
<title>File: resque_ui.rb [ResqueUi 3.2.1]</title>
|
10
10
|
|
11
11
|
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />
|
12
12
|
|
data/resque_ui.gemspec
CHANGED