Reduced debug message.
This commit is contained in:
parent
d91d5e3bce
commit
10ae67588b
1 changed files with 1 additions and 2 deletions
|
@ -52,11 +52,10 @@ class Scheduler < ApplicationModel
|
||||||
end
|
end
|
||||||
|
|
||||||
def self._start_job( job, worker, worker_count )
|
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.last_run = Time.now
|
||||||
job.pid = Thread.current.object_id
|
job.pid = Thread.current.object_id
|
||||||
job.save
|
job.save
|
||||||
puts "execute #{job.method} (worker #{worker} of #{worker_count})..."
|
|
||||||
eval job.method()
|
eval job.method()
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Reference in a new issue