lib/rufus/sc/jobs.rb in rufus-scheduler-2.0.11 vs lib/rufus/sc/jobs.rb in rufus-scheduler-2.0.12
- old
+ new
@@ -131,11 +131,11 @@
return if @running and (params[:allow_overlapping] == false)
@running = true
- @scheduler.send(:trigger_job, @params[:blocking]) do
+ @scheduler.send(:trigger_job, @params) do
#
# Note that #trigger_job is protected, hence the #send
# (Only jobs know about this method of the scheduler)
job_thread = Thread.current
@@ -151,10 +151,10 @@
job_thread = nil
to_job.unschedule if to_job
rescue Exception => e
- @scheduler.handle_exception(self, e)
+ @scheduler.do_handle_exception(self, e)
end
@running = false
end