Improved logging.
This commit is contained in:
parent
d206ef49ed
commit
708c8cf55c
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ class Scheduler < ApplicationModel
|
||||||
|
|
||||||
Thread.new {
|
Thread.new {
|
||||||
|
|
||||||
logger.info "started job thread for '#{job.name}' (#{job.method})..."
|
logger.info "Started job thread for '#{job.name}' (#{job.method})..."
|
||||||
|
|
||||||
# start loop for periods under 5 minutes
|
# start loop for periods under 5 minutes
|
||||||
if job.period && job.period <= 300
|
if job.period && job.period <= 300
|
||||||
|
@ -123,7 +123,7 @@ class Scheduler < ApplicationModel
|
||||||
Thread.new {
|
Thread.new {
|
||||||
sleep wait
|
sleep wait
|
||||||
|
|
||||||
logger.info "*** Starting worker thread #{Delayed::Job}"
|
logger.info "Starting worker thread #{Delayed::Job}"
|
||||||
|
|
||||||
loop do
|
loop do
|
||||||
result = nil
|
result = nil
|
||||||
|
|
Loading…
Reference in a new issue