lib/resque/worker.rb
# Runs all the methods needed when a worker begins its lifecycle.
Runs all the methods needed when a worker begins its lifecycle.
Runs all the methods needed when a worker begins its lifecycle .
def startup
      enable_gc_optimizations
      register_signal_handlers
      prune_dead_workers
      run_hook :before_first_fork, self
      register_worker
      $stdout.sync = true
    end
def startup enable_gc_optimizations register_signal_handlers prune_dead_workers run_hook :before_first_fork , self register_worker $stdout . sync = true end
Runs all the methods needed when a worker begins its lifecycle.
Runs all the methods needed when a worker begins its lifecycle .
# Fix buffering so we can `rake resque:work > resque.log` and # get output from the child in there.