job_boss 0.2 → 0.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/README.markdown +25 -2
- data/Rakefile +21 -8
- data/bin/job_boss +1 -0
- data/doc/ActiveSupport/TestCase.html +584 -0
- data/doc/{Passenger.html → ActiveSupport.html} +10 -30
- data/doc/CreateJobs.html +31 -16
- data/doc/{Mongrel.html → DaemonTest.html} +23 -39
- data/doc/JobBoss/Boss.html +466 -68
- data/doc/JobBoss/Config.html +77 -39
- data/doc/JobBoss/Job.html +375 -97
- data/doc/JobBoss/Queuer.html +35 -21
- data/doc/JobBoss.html +14 -311
- data/doc/{ActiveRecord.html → MathJobs.html} +66 -36
- data/doc/Rakefile.html +43 -9
- data/doc/SleepJobs.html +251 -0
- data/doc/{PhusionPassenger.html → StringJobs.html} +66 -38
- data/doc/bin/job_boss.html +1 -1
- data/doc/created.rid +14 -8
- data/doc/index.html +63 -7
- data/doc/lib/job_boss/boss_rb.html +5 -1
- data/doc/lib/job_boss/{configuror_rb.html → config_rb.html} +2 -2
- data/doc/lib/job_boss/job_rb.html +3 -1
- data/doc/lib/job_boss/queuer_rb.html +1 -1
- data/doc/lib/migrate_rb.html +1 -1
- data/doc/{vendor/spawn/lib/spawn_rb.html → test/app_root/app/jobs/math_jobs_rb.html} +7 -7
- data/doc/{vendor/spawn/lib/patches_rb.html → test/app_root/app/jobs/sleep_jobs_rb.html} +8 -12
- data/doc/test/app_root/app/jobs/string_jobs_rb.html +52 -0
- data/doc/test/test_helper_rb.html +62 -0
- data/doc/{vendor/spawn/init_rb.html → test/unit/daemon_test_rb.html} +3 -3
- data/doc/test/unit/job_test_rb.html +60 -0
- data/job_boss.gemspec +3 -2
- data/lib/job_boss/boss.rb +29 -7
- data/lib/job_boss/config.rb +49 -0
- data/lib/job_boss/job.rb +57 -13
- data/lib/migrate.rb +3 -1
- data/test/app_root/app/jobs/math_jobs.rb +5 -0
- data/test/app_root/app/jobs/sleep_jobs.rb +9 -0
- data/test/app_root/app/jobs/string_jobs.rb +5 -0
- data/test/app_root/config/database.yml +22 -0
- data/test/test_helper.rb +113 -0
- data/test/unit/daemon_test.rb +29 -0
- data/test/unit/job_test.rb +73 -0
- metadata +46 -27
- data/doc/ActiveRecord/Base.html +0 -343
- data/doc/Mongrel/HttpServer.html +0 -275
- data/doc/Passenger/Railz/RequestHandler.html +0 -271
- data/doc/Passenger/Railz.html +0 -185
- data/doc/PhusionPassenger/Rack/RequestHandler.html +0 -271
- data/doc/PhusionPassenger/Rack.html +0 -185
- data/doc/PhusionPassenger/Railz/RequestHandler.html +0 -271
- data/doc/PhusionPassenger/Railz.html +0 -185
- data/doc/Spawn/SpawnId.html +0 -276
- data/doc/Spawn.html +0 -742
- data/doc/vendor/spawn/CHANGELOG.html +0 -275
- data/doc/vendor/spawn/LICENSE.html +0 -151
- data/lib/job_boss/configuror.rb +0 -40
@@ -5,7 +5,7 @@
|
|
5
5
|
<head>
|
6
6
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
7
7
|
|
8
|
-
<title>Module:
|
8
|
+
<title>Module: ActiveSupport</title>
|
9
9
|
|
10
10
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
11
11
|
|
@@ -56,7 +56,7 @@
|
|
56
56
|
<h3 class="section-header">Namespace</h3>
|
57
57
|
<ul class="link-list">
|
58
58
|
|
59
|
-
<li><span class="type">
|
59
|
+
<li><span class="type">CLASS</span> <a href="ActiveSupport/TestCase.html">ActiveSupport::TestCase</a></li>
|
60
60
|
|
61
61
|
</ul>
|
62
62
|
</div>
|
@@ -78,10 +78,6 @@
|
|
78
78
|
|
79
79
|
<li class="file"><a href="./Rakefile.html">Rakefile</a></li>
|
80
80
|
|
81
|
-
<li class="file"><a href="./vendor/spawn/CHANGELOG.html">CHANGELOG</a></li>
|
82
|
-
|
83
|
-
<li class="file"><a href="./vendor/spawn/LICENSE.html">LICENSE</a></li>
|
84
|
-
|
85
81
|
</ul>
|
86
82
|
</div>
|
87
83
|
|
@@ -111,35 +107,19 @@
|
|
111
107
|
|
112
108
|
<li><a href="./JobBoss/Queuer.html">JobBoss::Queuer</a></li>
|
113
109
|
|
114
|
-
<li><a href="./
|
115
|
-
|
116
|
-
<li><a href="./PhusionPassenger/Rack.html">PhusionPassenger::Rack</a></li>
|
117
|
-
|
118
|
-
<li><a href="./PhusionPassenger/Rack/RequestHandler.html">PhusionPassenger::Rack::RequestHandler</a></li>
|
119
|
-
|
120
|
-
<li><a href="./PhusionPassenger/Railz.html">PhusionPassenger::Railz</a></li>
|
121
|
-
|
122
|
-
<li><a href="./PhusionPassenger/Railz/RequestHandler.html">PhusionPassenger::Railz::RequestHandler</a></li>
|
110
|
+
<li><a href="./ActiveSupport.html">ActiveSupport</a></li>
|
123
111
|
|
124
|
-
<li><a href="./
|
112
|
+
<li><a href="./ActiveSupport/TestCase.html">ActiveSupport::TestCase</a></li>
|
125
113
|
|
126
|
-
<li><a href="./
|
127
|
-
|
128
|
-
<li><a href="./Passenger/Railz/RequestHandler.html">Passenger::Railz::RequestHandler</a></li>
|
129
|
-
|
130
|
-
<li><a href="./ActiveRecord.html">ActiveRecord</a></li>
|
131
|
-
|
132
|
-
<li><a href="./ActiveRecord/Base.html">ActiveRecord::Base</a></li>
|
133
|
-
|
134
|
-
<li><a href="./Mongrel.html">Mongrel</a></li>
|
114
|
+
<li><a href="./CreateJobs.html">CreateJobs</a></li>
|
135
115
|
|
136
|
-
<li><a href="./
|
116
|
+
<li><a href="./DaemonTest.html">DaemonTest</a></li>
|
137
117
|
|
138
|
-
<li><a href="./
|
118
|
+
<li><a href="./MathJobs.html">MathJobs</a></li>
|
139
119
|
|
140
|
-
<li><a href="./
|
120
|
+
<li><a href="./SleepJobs.html">SleepJobs</a></li>
|
141
121
|
|
142
|
-
<li><a href="./
|
122
|
+
<li><a href="./StringJobs.html">StringJobs</a></li>
|
143
123
|
|
144
124
|
</ul>
|
145
125
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
@@ -150,7 +130,7 @@
|
|
150
130
|
</div>
|
151
131
|
|
152
132
|
<div id="documentation">
|
153
|
-
<h1 class="module">
|
133
|
+
<h1 class="module">ActiveSupport</h1>
|
154
134
|
|
155
135
|
<div id="description">
|
156
136
|
|
data/doc/CreateJobs.html
CHANGED
@@ -119,8 +119,20 @@
|
|
119
119
|
|
120
120
|
<li><a href="./JobBoss/Queuer.html">JobBoss::Queuer</a></li>
|
121
121
|
|
122
|
+
<li><a href="./ActiveSupport.html">ActiveSupport</a></li>
|
123
|
+
|
124
|
+
<li><a href="./ActiveSupport/TestCase.html">ActiveSupport::TestCase</a></li>
|
125
|
+
|
122
126
|
<li><a href="./CreateJobs.html">CreateJobs</a></li>
|
123
127
|
|
128
|
+
<li><a href="./DaemonTest.html">DaemonTest</a></li>
|
129
|
+
|
130
|
+
<li><a href="./MathJobs.html">MathJobs</a></li>
|
131
|
+
|
132
|
+
<li><a href="./SleepJobs.html">SleepJobs</a></li>
|
133
|
+
|
134
|
+
<li><a href="./StringJobs.html">StringJobs</a></li>
|
135
|
+
|
124
136
|
</ul>
|
125
137
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
126
138
|
</div>
|
@@ -168,10 +180,10 @@
|
|
168
180
|
<div class="method-source-code"
|
169
181
|
id="down-source">
|
170
182
|
<pre>
|
171
|
-
<span class="ruby-comment cmt"># File lib/migrate.rb, line
|
172
|
-
|
173
|
-
|
174
|
-
|
183
|
+
<span class="ruby-comment cmt"># File lib/migrate.rb, line 26</span>
|
184
|
+
26: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">down</span>
|
185
|
+
27: <span class="ruby-identifier">drop_table</span> <span class="ruby-value">:jobs</span>
|
186
|
+
28: <span class="ruby-keyword kw">end</span></pre>
|
175
187
|
</div>
|
176
188
|
|
177
189
|
</div>
|
@@ -209,20 +221,23 @@
|
|
209
221
|
5: <span class="ruby-identifier">t</span>.<span class="ruby-identifier">text</span> <span class="ruby-value">:args</span>
|
210
222
|
6: <span class="ruby-identifier">t</span>.<span class="ruby-identifier">text</span> <span class="ruby-value">:result</span>
|
211
223
|
7: <span class="ruby-identifier">t</span>.<span class="ruby-identifier">datetime</span> <span class="ruby-value">:started_at</span>
|
212
|
-
8: <span class="ruby-identifier">t</span>.<span class="ruby-identifier">datetime</span> <span class="ruby-value">:
|
213
|
-
9: <span class="ruby-identifier">t</span>.<span class="ruby-identifier">
|
214
|
-
10: <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:
|
215
|
-
11:
|
216
|
-
12:
|
217
|
-
13: <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:
|
218
|
-
14: <span class="ruby-identifier">t</span>.<span class="ruby-identifier">
|
224
|
+
8: <span class="ruby-identifier">t</span>.<span class="ruby-identifier">datetime</span> <span class="ruby-value">:cancelled_at</span>
|
225
|
+
9: <span class="ruby-identifier">t</span>.<span class="ruby-identifier">datetime</span> <span class="ruby-value">:completed_at</span>
|
226
|
+
10: <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:status</span>
|
227
|
+
11:
|
228
|
+
12: <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:error_class</span>
|
229
|
+
13: <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:error_message</span>
|
230
|
+
14: <span class="ruby-identifier">t</span>.<span class="ruby-identifier">text</span> <span class="ruby-value">:error_backtrace</span>
|
219
231
|
15:
|
220
|
-
16: <span class="ruby-identifier">t</span>.<span class="ruby-identifier">
|
221
|
-
17:
|
232
|
+
16: <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:employee_host</span>
|
233
|
+
17: <span class="ruby-identifier">t</span>.<span class="ruby-identifier">integer</span> <span class="ruby-value">:employee_pid</span>
|
222
234
|
18:
|
223
|
-
19:
|
224
|
-
20: <span class="ruby-
|
225
|
-
21:
|
235
|
+
19: <span class="ruby-identifier">t</span>.<span class="ruby-identifier">timestamps</span>
|
236
|
+
20: <span class="ruby-keyword kw">end</span>
|
237
|
+
21:
|
238
|
+
22: <span class="ruby-identifier">add_index</span> <span class="ruby-value">:jobs</span>, <span class="ruby-value">:path</span>
|
239
|
+
23: <span class="ruby-identifier">add_index</span> <span class="ruby-value">:jobs</span>, <span class="ruby-value">:status</span>
|
240
|
+
24: <span class="ruby-keyword kw">end</span></pre>
|
226
241
|
</div>
|
227
242
|
|
228
243
|
</div>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<head>
|
6
6
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
7
7
|
|
8
|
-
<title>
|
8
|
+
<title>Class: DaemonTest</title>
|
9
9
|
|
10
10
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
11
11
|
|
@@ -19,7 +19,7 @@
|
|
19
19
|
charset="utf-8"></script>
|
20
20
|
|
21
21
|
</head>
|
22
|
-
<body class="
|
22
|
+
<body class="class">
|
23
23
|
|
24
24
|
<div id="metadata">
|
25
25
|
<div id="home-metadata">
|
@@ -38,6 +38,12 @@
|
|
38
38
|
<div class="section-body">
|
39
39
|
<ul>
|
40
40
|
|
41
|
+
<li><a href="./test/unit/daemon_test_rb.html?TB_iframe=true&height=550&width=785"
|
42
|
+
class="thickbox" title="test/unit/daemon_test.rb">test/unit/daemon_test.rb</a></li>
|
43
|
+
|
44
|
+
<li><a href="./test/unit/job_test_rb.html?TB_iframe=true&height=550&width=785"
|
45
|
+
class="thickbox" title="test/unit/job_test.rb">test/unit/job_test.rb</a></li>
|
46
|
+
|
41
47
|
</ul>
|
42
48
|
</div>
|
43
49
|
</div>
|
@@ -49,18 +55,16 @@
|
|
49
55
|
|
50
56
|
<!-- Parent Class -->
|
51
57
|
|
58
|
+
<div id="parent-class-section" class="section">
|
59
|
+
<h3 class="section-header">Parent</h3>
|
60
|
+
|
61
|
+
<p class="link"><a href="ActiveSupport/TestCase.html">ActiveSupport::TestCase</a></p>
|
62
|
+
|
63
|
+
</div>
|
64
|
+
|
52
65
|
|
53
66
|
<!-- Namespace Contents -->
|
54
67
|
|
55
|
-
<div id="namespace-list-section" class="section">
|
56
|
-
<h3 class="section-header">Namespace</h3>
|
57
|
-
<ul class="link-list">
|
58
|
-
|
59
|
-
<li><span class="type">CLASS</span> <a href="Mongrel/HttpServer.html">Mongrel::HttpServer</a></li>
|
60
|
-
|
61
|
-
</ul>
|
62
|
-
</div>
|
63
|
-
|
64
68
|
|
65
69
|
<!-- Method Quickref -->
|
66
70
|
|
@@ -78,10 +82,6 @@
|
|
78
82
|
|
79
83
|
<li class="file"><a href="./Rakefile.html">Rakefile</a></li>
|
80
84
|
|
81
|
-
<li class="file"><a href="./vendor/spawn/CHANGELOG.html">CHANGELOG</a></li>
|
82
|
-
|
83
|
-
<li class="file"><a href="./vendor/spawn/LICENSE.html">LICENSE</a></li>
|
84
|
-
|
85
85
|
</ul>
|
86
86
|
</div>
|
87
87
|
|
@@ -111,35 +111,19 @@
|
|
111
111
|
|
112
112
|
<li><a href="./JobBoss/Queuer.html">JobBoss::Queuer</a></li>
|
113
113
|
|
114
|
-
<li><a href="./
|
115
|
-
|
116
|
-
<li><a href="./PhusionPassenger/Rack.html">PhusionPassenger::Rack</a></li>
|
117
|
-
|
118
|
-
<li><a href="./PhusionPassenger/Rack/RequestHandler.html">PhusionPassenger::Rack::RequestHandler</a></li>
|
119
|
-
|
120
|
-
<li><a href="./PhusionPassenger/Railz.html">PhusionPassenger::Railz</a></li>
|
121
|
-
|
122
|
-
<li><a href="./PhusionPassenger/Railz/RequestHandler.html">PhusionPassenger::Railz::RequestHandler</a></li>
|
114
|
+
<li><a href="./ActiveSupport.html">ActiveSupport</a></li>
|
123
115
|
|
124
|
-
<li><a href="./
|
116
|
+
<li><a href="./ActiveSupport/TestCase.html">ActiveSupport::TestCase</a></li>
|
125
117
|
|
126
|
-
<li><a href="./
|
127
|
-
|
128
|
-
<li><a href="./Passenger/Railz/RequestHandler.html">Passenger::Railz::RequestHandler</a></li>
|
129
|
-
|
130
|
-
<li><a href="./ActiveRecord.html">ActiveRecord</a></li>
|
131
|
-
|
132
|
-
<li><a href="./ActiveRecord/Base.html">ActiveRecord::Base</a></li>
|
133
|
-
|
134
|
-
<li><a href="./Mongrel.html">Mongrel</a></li>
|
118
|
+
<li><a href="./CreateJobs.html">CreateJobs</a></li>
|
135
119
|
|
136
|
-
<li><a href="./
|
120
|
+
<li><a href="./DaemonTest.html">DaemonTest</a></li>
|
137
121
|
|
138
|
-
<li><a href="./
|
122
|
+
<li><a href="./MathJobs.html">MathJobs</a></li>
|
139
123
|
|
140
|
-
<li><a href="./
|
124
|
+
<li><a href="./SleepJobs.html">SleepJobs</a></li>
|
141
125
|
|
142
|
-
<li><a href="./
|
126
|
+
<li><a href="./StringJobs.html">StringJobs</a></li>
|
143
127
|
|
144
128
|
</ul>
|
145
129
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
@@ -150,7 +134,7 @@
|
|
150
134
|
</div>
|
151
135
|
|
152
136
|
<div id="documentation">
|
153
|
-
<h1 class="
|
137
|
+
<h1 class="class">DaemonTest</h1>
|
154
138
|
|
155
139
|
<div id="description">
|
156
140
|
|