diff --git a/app/models/scheduler.rb b/app/models/scheduler.rb index 82b5d4775..0d90bfe0e 100644 --- a/app/models/scheduler.rb +++ b/app/models/scheduler.rb @@ -52,11 +52,10 @@ class Scheduler < ApplicationModel end def self._start_job( job, worker, worker_count ) - puts "execute #{job.method}..." + puts "execute #{job.method} (worker #{worker} of #{worker_count})..." job.last_run = Time.now job.pid = Thread.current.object_id job.save - puts "execute #{job.method} (worker #{worker} of #{worker_count})..." eval job.method() end end \ No newline at end of file