class Quebert::Backend::Sync
Run the job syncronously. This is typically used in a testing environment or could be used as a fallback if other backends fail to initialize
Public Instance Methods
put(job, *args)
click to toggle source
# File lib/quebert/backend/sync.rb, line 6 def put(job, *args) Controller::Base.new(Job.from_json(job.to_json)).perform end
reserve(*args, &block)
click to toggle source
# File lib/quebert/backend/sync.rb, line 10 def reserve(*args, &block) # reserve doesn't do anything in sync mode @null_controller ||= Controller::NullController.new end