resque_ui 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. data/Gemfile +6 -0
  2. data/Gemfile.lock +102 -0
  3. data/History.txt +5 -0
  4. data/MIT-LICENSE +21 -0
  5. data/README.markdown +279 -0
  6. data/Rakefile +49 -0
  7. data/VERSION.yml +5 -0
  8. data/app/assets/images/idle.png +0 -0
  9. data/app/assets/images/poll.png +0 -0
  10. data/app/assets/images/working.png +0 -0
  11. data/app/assets/javascripts/resque/jquery-1.3.2.min.js +19 -0
  12. data/app/assets/javascripts/resque/jquery.relatize_date.js +95 -0
  13. data/app/assets/javascripts/resque/ranger.js +24 -0
  14. data/app/assets/stylesheets/resque/resque.css +93 -0
  15. data/app/assets/stylesheets/resque/resque_reset.css +48 -0
  16. data/app/controllers/resque_controller.rb +236 -0
  17. data/app/helpers/resque_helper.rb +107 -0
  18. data/app/views/layouts/resque.html.erb +39 -0
  19. data/app/views/resque/_key.html.erb +17 -0
  20. data/app/views/resque/_next_more.html.erb +10 -0
  21. data/app/views/resque/_queues.html.erb +52 -0
  22. data/app/views/resque/_status_styles.erb +98 -0
  23. data/app/views/resque/_workers.html.erb +110 -0
  24. data/app/views/resque/_working.html.erb +69 -0
  25. data/app/views/resque/delayed.html.erb +35 -0
  26. data/app/views/resque/delayed_timestamp.html.erb +26 -0
  27. data/app/views/resque/error.erb +1 -0
  28. data/app/views/resque/failed.html.erb +54 -0
  29. data/app/views/resque/overview.html.erb +4 -0
  30. data/app/views/resque/schedule.html.erb +96 -0
  31. data/app/views/resque/stats.html.erb +62 -0
  32. data/app/views/resque/status.html.erb +57 -0
  33. data/app/views/resque/statuses.html.erb +72 -0
  34. data/app/views/resque/workers.html.erb +1 -0
  35. data/lib/resque_ui/cap.rb +6 -0
  36. data/lib/resque_ui/cap_recipes.rb +106 -0
  37. data/lib/resque_ui/overrides/resque/failure/failure.rb +22 -0
  38. data/lib/resque_ui/overrides/resque/job.rb +12 -0
  39. data/lib/resque_ui/overrides/resque/resque.rb +8 -0
  40. data/lib/resque_ui/overrides/resque/worker.rb +230 -0
  41. data/lib/resque_ui/overrides/resque_scheduler/resque_scheduler.rb +58 -0
  42. data/lib/resque_ui/overrides/resque_status/chained_job_with_status.rb +24 -0
  43. data/lib/resque_ui/overrides/resque_status/job_with_status.rb +59 -0
  44. data/lib/resque_ui/overrides/resque_status/status.rb +53 -0
  45. data/lib/resque_ui.rb +26 -0
  46. data/lib/tasks/failure.rake +8 -0
  47. data/lib/tasks/scheduler.rake +11 -0
  48. data/lib/tasks/worker.rake +80 -0
  49. data/rdoc/Resque/ChainedJobWithStatus.html +284 -0
  50. data/rdoc/Resque/Failure/Base.html +229 -0
  51. data/rdoc/Resque/Failure.html +202 -0
  52. data/rdoc/Resque/Job.html +202 -0
  53. data/rdoc/Resque/JobWithStatus.html +410 -0
  54. data/rdoc/Resque/Status.html +368 -0
  55. data/rdoc/Resque/Worker.html +1104 -0
  56. data/rdoc/Resque.html +232 -0
  57. data/rdoc/ResqueScheduler.html +434 -0
  58. data/rdoc/ResqueUi/Cap.html +150 -0
  59. data/rdoc/ResqueUi/Engine.html +150 -0
  60. data/rdoc/ResqueUi.html +157 -0
  61. data/rdoc/created.rid +13 -0
  62. data/rdoc/images/brick.png +0 -0
  63. data/rdoc/images/brick_link.png +0 -0
  64. data/rdoc/images/bug.png +0 -0
  65. data/rdoc/images/bullet_black.png +0 -0
  66. data/rdoc/images/bullet_toggle_minus.png +0 -0
  67. data/rdoc/images/bullet_toggle_plus.png +0 -0
  68. data/rdoc/images/date.png +0 -0
  69. data/rdoc/images/find.png +0 -0
  70. data/rdoc/images/loadingAnimation.gif +0 -0
  71. data/rdoc/images/macFFBgHack.png +0 -0
  72. data/rdoc/images/package.png +0 -0
  73. data/rdoc/images/page_green.png +0 -0
  74. data/rdoc/images/page_white_text.png +0 -0
  75. data/rdoc/images/page_white_width.png +0 -0
  76. data/rdoc/images/plugin.png +0 -0
  77. data/rdoc/images/ruby.png +0 -0
  78. data/rdoc/images/tag_green.png +0 -0
  79. data/rdoc/images/wrench.png +0 -0
  80. data/rdoc/images/wrench_orange.png +0 -0
  81. data/rdoc/images/zoom.png +0 -0
  82. data/rdoc/index.html +163 -0
  83. data/rdoc/js/darkfish.js +116 -0
  84. data/rdoc/js/jquery.js +32 -0
  85. data/rdoc/js/quicksearch.js +114 -0
  86. data/rdoc/js/thickbox-compressed.js +10 -0
  87. data/rdoc/lib/resque_overrides_rb.html +54 -0
  88. data/rdoc/lib/resque_scheduler_overrides_rb.html +52 -0
  89. data/rdoc/lib/resque_status_overrides_rb.html +52 -0
  90. data/rdoc/lib/resque_ui/cap_rb.html +52 -0
  91. data/rdoc/lib/resque_ui/cap_recipes_rb.html +58 -0
  92. data/rdoc/lib/resque_ui/engine_rb.html +52 -0
  93. data/rdoc/lib/resque_ui/overrides/resque/failure/failure_rb.html +54 -0
  94. data/rdoc/lib/resque_ui/overrides/resque/job_rb.html +52 -0
  95. data/rdoc/lib/resque_ui/overrides/resque/resque_rb.html +52 -0
  96. data/rdoc/lib/resque_ui/overrides/resque/worker_rb.html +54 -0
  97. data/rdoc/lib/resque_ui/overrides/resque_scheduler/resque_scheduler_rb.html +52 -0
  98. data/rdoc/lib/resque_ui/overrides/resque_status/chained_job_with_status_rb.html +52 -0
  99. data/rdoc/lib/resque_ui/overrides/resque_status/job_with_status_rb.html +52 -0
  100. data/rdoc/lib/resque_ui/overrides/resque_status/status_rb.html +52 -0
  101. data/rdoc/lib/resque_ui/resque_ui_rb.html +52 -0
  102. data/rdoc/lib/resque_ui/tasks_rb.html +64 -0
  103. data/rdoc/lib/resque_ui_rb.html +76 -0
  104. data/rdoc/rdoc.css +763 -0
  105. data/resque_ui.gemspec +153 -0
  106. data/test/resque_ui_test.rb +8 -0
  107. data/test/test_helper.rb +3 -0
  108. metadata +205 -0
@@ -0,0 +1,8 @@
1
+ namespace :resque do
2
+
3
+ desc "Requeue all failed jobs in a class. If no class is given, all failed jobs will be requeued. ex: rake resque:requeue class=class_name"
4
+ task :requeue => :setup do
5
+ Resque::Failure.requeue ENV['class']
6
+ end
7
+
8
+ end
@@ -0,0 +1,11 @@
1
+ namespace :resque do
2
+
3
+ desc "Kill the scheduler pid"
4
+ task :quit_scheduler => :setup do
5
+ require 'resque_scheduler'
6
+ ResqueScheduler.pids.each do |pid|
7
+ `kill -TERM #{pid}`
8
+ end
9
+ end
10
+
11
+ end
@@ -0,0 +1,80 @@
1
+ namespace :resque do
2
+
3
+ desc "Start a Resque worker, each queue will create it's own worker in a separate thread"
4
+ task :work => :setup do
5
+ require 'resque'
6
+
7
+ worker = nil
8
+ queues = (ENV['QUEUES'] || ENV['QUEUE']).to_s.split('#').delete_if { |a| a.blank? }
9
+ threads = []
10
+ mqueue = queues.shift
11
+ Thread.current[:queues] = mqueue
12
+ mworker = Resque::Worker.new(mqueue)
13
+ mworker.verbose = true #ENV['LOGGING'] || ENV['VERBOSE']
14
+ mworker.very_verbose = true #ENV['VVERBOSE']
15
+
16
+ if ENV['PIDFILE']
17
+ File.open(ENV['PIDFILE'], 'w') { |f| f << mworker.pid }
18
+ end
19
+
20
+ queues.each do |queue|
21
+ threads << Thread.new do
22
+ begin
23
+ Thread.current[:queues] = queue
24
+ worker = Resque::Worker.new(queue)
25
+ worker.verbose = ENV['LOGGING'] || ENV['VERBOSE']
26
+ worker.very_verbose = ENV['VVERBOSE']
27
+ rescue Resque::NoQueueError
28
+ abort "set QUEUE env var, e.g. $ QUEUE=critical,high rake resque:work"
29
+ end
30
+
31
+ worker.log "Starting worker #{worker}"
32
+ begin
33
+ worker.work(ENV['INTERVAL'] || 5) # interval, will block
34
+ rescue Exception => e
35
+ puts "********** e.message = " + e.message.inspect
36
+ RAILS_DEFAULT_LOGGER.info "********** e.message = " + e.message.inspect
37
+ end
38
+ end
39
+ end
40
+ threads.each { |thread| thread.join(0.5) }
41
+ mworker.work(ENV['INTERVAL'] || 5) # interval, will block
42
+ end
43
+
44
+ desc "Restart all the workers"
45
+ task :restart_workers => :setup do
46
+ require 'resque'
47
+ pid = ''
48
+ Resque.workers.sort_by { |w| w.to_s }.each do |worker|
49
+ if pid != worker.pid
50
+ worker.restart
51
+ pid = worker.pid
52
+ end
53
+ end
54
+ end
55
+
56
+ desc "Gracefully kill all the workers. If the worker is working, it will finish before shutting down. arg: host=ip pid=pid"
57
+ task :quit_workers => :setup do
58
+ require 'resque'
59
+ pid = ''
60
+ Resque.workers.sort_by { |w| w.to_s }.each do |worker|
61
+ if pid != worker.pid
62
+ worker.quit
63
+ pid = worker.pid
64
+ end
65
+ end
66
+ end
67
+
68
+ desc "Kill all rogue workers on all servers. If the worker is working, it will not finish and the job will go to the Failed queue as a DirtExit. arg: host=ip pid=pid"
69
+ task :kill_workers_with_impunity => :setup do
70
+ require 'resque'
71
+ pid = ''
72
+ Resque.workers.sort_by { |w| w.to_s }.each do |worker|
73
+ if pid != worker.pid
74
+ `kill -9 #{worker.pid}`
75
+ pid = worker.pid
76
+ end
77
+ end
78
+ end
79
+
80
+ end
@@ -0,0 +1,284 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
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" />
7
+
8
+ <title>Class: Resque::ChainedJobWithStatus</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
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>
16
+
17
+ </head>
18
+ <body id="top" class="class">
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_status/chained_job_with_status_rb.html?TB_iframe=true&amp;height=550&amp;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
+
44
+
45
+ </div>
46
+
47
+ <div id="class-metadata">
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
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+ <!-- Method Quickref -->
64
+ <div id="method-list-section" class="section">
65
+ <h3 class="section-header">Methods</h3>
66
+ <ul class="link-list">
67
+
68
+ <li><a href="#method-c-enqueue">::enqueue</a></li>
69
+
70
+ <li><a href="#method-i-completed">#completed</a></li>
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/Failure.html">Resque::Failure</a></li>
105
+
106
+ <li><a href="../Resque/Job.html">Resque::Job</a></li>
107
+
108
+ <li><a href="../Resque/JobWithStatus.html">Resque::JobWithStatus</a></li>
109
+
110
+ <li><a href="../Resque/Status.html">Resque::Status</a></li>
111
+
112
+ <li><a href="../Resque/Worker.html">Resque::Worker</a></li>
113
+
114
+ <li><a href="../ResqueUi.html">ResqueUi</a></li>
115
+
116
+ <li><a href="../ResqueUi/Cap.html">ResqueUi::Cap</a></li>
117
+
118
+ <li><a href="../ResqueUi/Engine.html">ResqueUi::Engine</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>
125
+
126
+
127
+ </div>
128
+ </div>
129
+
130
+ <div id="documentation">
131
+ <h1 class="class">Resque::ChainedJobWithStatus</h1>
132
+
133
+ <div id="description" class="description">
134
+
135
+ </div><!-- description -->
136
+
137
+
138
+
139
+
140
+ <div id="5Buntitled-5D" class="documentation-section">
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+ <!-- Methods -->
150
+
151
+ <div id="public-class-method-details" class="method-section section">
152
+ <h3 class="section-header">Public Class Methods</h3>
153
+
154
+
155
+ <div id="enqueue-method" class="method-detail ">
156
+ <a name="method-c-enqueue"></a>
157
+
158
+
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
+
165
+
166
+ <div class="method-description">
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>
175
+ <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
+ <span class="ruby-comment">#tie this job to the status of the calling job</span>
177
+ <span class="ruby-identifier">opts</span> = <span class="ruby-constant">HashWithIndifferentAccess</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>)
178
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">&quot;You must supply a :uuid attribute in your call to create.&quot;</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">opts</span>[<span class="ruby-string">'uuid'</span>]
179
+ <span class="ruby-identifier">uuid</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-string">'uuid'</span>]
180
+ <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
+ <span class="ruby-identifier">uuid</span>
182
+ <span class="ruby-keyword">end</span></pre>
183
+ </div><!-- enqueue-source -->
184
+
185
+ </div>
186
+
187
+
188
+
189
+
190
+ </div><!-- enqueue-method -->
191
+
192
+
193
+ </div><!-- public-class-method-details -->
194
+
195
+ <div id="public-instance-method-details" class="method-section section">
196
+ <h3 class="section-header">Public Instance Methods</h3>
197
+
198
+
199
+ <div id="completed-method" class="method-detail ">
200
+ <a name="method-i-completed"></a>
201
+
202
+
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
+
209
+
210
+ <div class="method-description">
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>
219
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">completed</span>(*<span class="ruby-identifier">messages</span>)
220
+ <span class="ruby-keyword">super</span>(*<span class="ruby-identifier">messages</span>)
221
+ <span class="ruby-comment"># &quot;You must override this method to provide your own logic of when to actually call complete.&quot;</span>
222
+ <span class="ruby-comment"># if counter(:processed) &gt;= options['total']</span>
223
+ <span class="ruby-comment"># super</span>
224
+ <span class="ruby-comment"># end</span>
225
+ <span class="ruby-keyword">end</span></pre>
226
+ </div><!-- completed-source -->
227
+
228
+ </div>
229
+
230
+
231
+
232
+
233
+ </div><!-- completed-method -->
234
+
235
+
236
+ <div id="name-method" class="method-detail ">
237
+ <a name="method-i-name"></a>
238
+
239
+
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
+
246
+
247
+ <div class="method-description">
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>
256
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">name</span>
257
+ <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
+ <span class="ruby-keyword">end</span></pre>
259
+ </div><!-- name-source -->
260
+
261
+ </div>
262
+
263
+
264
+
265
+
266
+ </div><!-- name-method -->
267
+
268
+
269
+ </div><!-- public-instance-method-details -->
270
+
271
+ </div><!-- 5Buntitled-5D -->
272
+
273
+
274
+ </div><!-- documentation -->
275
+
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
+
282
+ </body>
283
+ </html>
284
+
@@ -0,0 +1,229 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
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" />
7
+
8
+ <title>Class: Resque::Failure::Base</title>
9
+
10
+ <link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
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>
16
+
17
+ </head>
18
+ <body id="top" class="class">
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_overrides_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/resque_overrides.rb">lib/resque_overrides.rb</a></li>
39
+
40
+ </ul>
41
+ </div>
42
+ </div>
43
+
44
+
45
+ </div>
46
+
47
+ <div id="class-metadata">
48
+
49
+ <!-- Parent Class -->
50
+ <div id="parent-class-section" class="section">
51
+ <h3 class="section-header">Parent</h3>
52
+
53
+ <p class="link">Object</p>
54
+
55
+ </div>
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+ <!-- Method Quickref -->
64
+ <div id="method-list-section" class="section">
65
+ <h3 class="section-header">Methods</h3>
66
+ <ul class="link-list">
67
+
68
+ <li><a href="#method-c-new">::new</a></li>
69
+
70
+ </ul>
71
+ </div>
72
+
73
+
74
+
75
+ </div>
76
+
77
+ <div id="project-metadata">
78
+
79
+
80
+
81
+ <div id="classindex-section" class="section project-section">
82
+ <h3 class="section-header">Class/Module Index
83
+ <span class="search-toggle"><img src="../../images/find.png"
84
+ height="16" width="16" alt="[+]"
85
+ title="show/hide quicksearch" /></span></h3>
86
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
87
+ <fieldset>
88
+ <legend>Quicksearch</legend>
89
+ <input type="text" name="quicksearch" value=""
90
+ class="quicksearch-field" />
91
+ </fieldset>
92
+ </form>
93
+
94
+ <ul class="link-list">
95
+
96
+ <li><a href="../../Resque.html">Resque</a></li>
97
+
98
+ <li><a href="../../Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a></li>
99
+
100
+ <li><a href="../../Resque/Failure.html">Resque::Failure</a></li>
101
+
102
+ <li><a href="../../Resque/Failure/Base.html">Resque::Failure::Base</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="../../ResqueScheduler.html">ResqueScheduler</a></li>
119
+
120
+ </ul>
121
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
122
+ </div>
123
+
124
+
125
+ </div>
126
+ </div>
127
+
128
+ <div id="documentation">
129
+ <h1 class="class">Resque::Failure::Base</h1>
130
+
131
+ <div id="description" class="description">
132
+
133
+ </div><!-- description -->
134
+
135
+
136
+
137
+
138
+ <div id="5Buntitled-5D" class="documentation-section">
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+ <!-- Attributes -->
147
+ <div id="attribute-method-details" class="method-section section">
148
+ <h3 class="section-header">Attributes</h3>
149
+
150
+
151
+ <div id="failed_at-attribute-method" class="method-detail">
152
+ <a name="failed_at"></a>
153
+
154
+ <a name="failed_at="></a>
155
+
156
+ <div class="method-heading attribute-method-heading">
157
+ <span class="method-name">failed_at</span><span
158
+ class="attribute-access-type">[RW]</span>
159
+ </div>
160
+
161
+ <div class="method-description">
162
+
163
+ <p>When the job originally failed. Used when clearing a single failure</p>
164
+
165
+ </div>
166
+ </div>
167
+
168
+ </div><!-- attribute-method-details -->
169
+
170
+
171
+ <!-- Methods -->
172
+
173
+ <div id="public-class-method-details" class="method-section section">
174
+ <h3 class="section-header">Public Class Methods</h3>
175
+
176
+
177
+ <div id="new-method" class="method-detail ">
178
+ <a name="method-c-new"></a>
179
+
180
+
181
+ <div class="method-heading">
182
+ <span class="method-name">new</span><span
183
+ class="method-args">(exception, worker, queue, payload, failed_at = nil)</span>
184
+ <span class="method-click-advice">click to toggle source</span>
185
+ </div>
186
+
187
+
188
+ <div class="method-description">
189
+
190
+
191
+
192
+
193
+
194
+ <div class="method-source-code" id="new-source">
195
+ <pre>
196
+ <span class="ruby-comment"># File lib/resque_overrides.rb, line 287</span>
197
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">exception</span>, <span class="ruby-identifier">worker</span>, <span class="ruby-identifier">queue</span>, <span class="ruby-identifier">payload</span>, <span class="ruby-identifier">failed_at</span> = <span class="ruby-keyword">nil</span>)
198
+ <span class="ruby-ivar">@exception</span> = <span class="ruby-identifier">exception</span>
199
+ <span class="ruby-ivar">@worker</span> = <span class="ruby-identifier">worker</span>
200
+ <span class="ruby-ivar">@queue</span> = <span class="ruby-identifier">queue</span>
201
+ <span class="ruby-ivar">@payload</span> = <span class="ruby-identifier">payload</span>
202
+ <span class="ruby-ivar">@failed_at</span> = <span class="ruby-identifier">failed_at</span>
203
+ <span class="ruby-keyword">end</span></pre>
204
+ </div><!-- new-source -->
205
+
206
+ </div>
207
+
208
+
209
+
210
+
211
+ </div><!-- new-method -->
212
+
213
+
214
+ </div><!-- public-class-method-details -->
215
+
216
+ </div><!-- 5Buntitled-5D -->
217
+
218
+
219
+ </div><!-- documentation -->
220
+
221
+ <div id="validator-badges">
222
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
223
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
224
+ Rdoc Generator</a> 2</small>.</p>
225
+ </div>
226
+
227
+ </body>
228
+ </html>
229
+