Skip to content

Commit

Permalink
Clear active AR connections in the background script so it picks up t…
Browse files Browse the repository at this point in the history
…he new logger.
  • Loading branch information
bkeepers committed Apr 1, 2009
1 parent e2a726a commit 28a0028
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/delayed/command.rb
Expand Up @@ -34,6 +34,7 @@ def run
logger = Logger.new(File.join(RAILS_ROOT, 'log', 'delayed_job.log'))
logger.level = ActiveRecord::Base.logger.level
ActiveRecord::Base.logger = logger
ActiveRecord::Base.clear_active_connections!

logger.info "*** Starting job worker #{Delayed::Job.worker_name}"

Expand Down

0 comments on commit 28a0028

Please sign in to comment.