Applied rubocop cop 'Style/RedundantBegin'.

This commit is contained in:
Thorsten Eckel 2015-07-03 17:30:05 +02:00
parent 4c0fa5111d
commit bc6a8ca169

View file

@ -82,7 +82,6 @@ class Scheduler < ApplicationModel
end
def self._start_job( job, try_count = 0, try_run_time = Time.zone.now )
begin
job.last_run = Time.zone.now
job.pid = Thread.current.object_id
job.save
@ -114,7 +113,6 @@ class Scheduler < ApplicationModel
raise "STOP thread for #{job.method} after #{try_count} tries"
end
end
end
def self.worker
wait = 8