job_boss 0.5.5 → 0.5.7
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 +7 -7
- data/doc/ActiveSupport/TestCase.html +2 -2
- data/doc/JobBoss/Boss.html +222 -221
- data/doc/JobBoss/Config.html +43 -43
- data/doc/JobBoss/Job.html +4 -4
- data/doc/JobBoss/Queuer.html +40 -39
- data/doc/created.rid +9 -9
- data/doc/index.html +4 -4
- data/doc/lib/job_boss/boss_rb.html +1 -1
- data/doc/lib/job_boss/config_rb.html +3 -1
- data/doc/lib/job_boss/job_rb.html +1 -1
- data/doc/lib/job_boss/queuer_rb.html +3 -1
- data/doc/lib/migrate_rb.html +1 -1
- data/doc/test/test_helper_rb.html +1 -1
- data/doc/test/unit/daemon_test_rb.html +1 -1
- data/doc/test/unit/job_test_rb.html +1 -1
- data/job_boss.gemspec +1 -1
- data/lib/job_boss/boss.rb +46 -41
- data/lib/job_boss/config.rb +16 -14
- data/lib/job_boss/job.rb +3 -3
- data/lib/job_boss/queuer.rb +1 -0
- data/test/test_helper.rb +1 -1
- data/test/unit/daemon_test.rb +32 -5
- metadata +3 -3
data/README.markdown
CHANGED
@@ -56,13 +56,13 @@ You can get command line options with the command:
|
|
56
56
|
But since you don't want to do that right now, it looks something like this:
|
57
57
|
|
58
58
|
Usage: job_boss [start|stop|restart|run|zap] [-- <options>]
|
59
|
-
-r, --application-root PATH Path for the application root upon which other paths depend (defaults to .)
|
60
|
-
-d, --database-yaml PATH Path for database YAML (defaults to <application-root>/config/database.yml)
|
61
|
-
-l, --log-path PATH Path for log file (defaults to <application-root>/log/job_boss.log)
|
62
|
-
-j, --jobs-path PATH Path to folder with job classes (defaults to <application-root>/app/jobs)
|
63
|
-
-e, --environment ENV Environment to use in database YAML file (defaults to 'development')
|
64
|
-
-s, --sleep-interval INTERVAL Number of seconds for the boss to sleep between checks of the queue (default 0.5)
|
65
|
-
-c, --employee-limit LIMIT
|
59
|
+
-r, --application-root PATH Path for the application root upon which other paths depend (defaults to .) Environment variable: JB_APPLICATION_ROOT
|
60
|
+
-d, --database-yaml PATH Path for database YAML (defaults to <application-root>/config/database.yml) Environment variable: JB_DATABASE_YAML_PATH
|
61
|
+
-l, --log-path PATH Path for log file (defaults to <application-root>/log/job_boss.log) Environment variable: JB_LOG_PATH
|
62
|
+
-j, --jobs-path PATH Path to folder with job classes (defaults to <application-root>/app/jobs) Environment variable: JB_JOBS_PATH
|
63
|
+
-e, --environment ENV Environment to use in database YAML file (defaults to 'development') Environment variable: JB_ENVIRONMENT
|
64
|
+
-s, --sleep-interval INTERVAL Number of seconds for the boss to sleep between checks of the queue (default 0.5) Environment variable: JB_SLEEP_INTERVAL
|
65
|
+
-c, --employee-limit LIMIT Maximum number of employees (default 4) Environment variable: JB_EMPLOYEE_LIMIT
|
66
66
|
|
67
67
|
From your Rails code or in a console:
|
68
68
|
|
@@ -423,7 +423,7 @@
|
|
423
423
|
<div class="method-heading">
|
424
424
|
|
425
425
|
<span class="method-name">start_daemon</span><span
|
426
|
-
class="method-args">(options)</span>
|
426
|
+
class="method-args">(options = {})</span>
|
427
427
|
<span class="method-click-advice">click to toggle source</span>
|
428
428
|
|
429
429
|
</div>
|
@@ -438,7 +438,7 @@
|
|
438
438
|
id="start-daemon-source">
|
439
439
|
<pre>
|
440
440
|
<span class="ruby-comment cmt"># File test/test_helper.rb, line 55</span>
|
441
|
-
55: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start_daemon</span>(<span class="ruby-identifier">options</span>)
|
441
|
+
55: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start_daemon</span>(<span class="ruby-identifier">options</span> = {})
|
442
442
|
56: <span class="ruby-identifier">clean_app_environment</span>
|
443
443
|
57:
|
444
444
|
58: <span class="ruby-identifier">stop_daemon</span>
|