lib/rocket_job/config.rb in rocketjob-2.0.0 vs lib/rocket_job/config.rb in rocketjob-2.1.1
- old
+ new
@@ -1,5 +1,6 @@
+require 'yaml'
# encoding: UTF-8
module RocketJob
# Centralized Configuration for Rocket Jobs
class Config
include Plugins::Document
@@ -13,12 +14,12 @@
# In case another process has already created the first document
first
end
end
- # Useful for Testing, not recommended elsewhere
- # By enabling inline_mode jobs will be called in-line using perform_now
- # No worker processes will be created, nor threads created
+ # Useful for Testing, not recommended elsewhere.
+ # When enabled all calls to `perform_later` will be redirected to `perform_now`.
+ # Also, exceptions will be raised instead of failing the job.
cattr_accessor(:inline_mode) { false }
# @formatter:off
# The maximum number of worker threads to create on any one worker
key :max_worker_threads, Integer, default: 10