lib/resque/worker.rb
# Processes a given job in the child.
Processes a given job in the child.
Processes a given job in the child .
def perform(job)
      begin
        run_hook :after_fork, job if will_fork?
        run_hook :before_perform, job
        job.perform
        run_hook :after_perform, job
      rescue Object => e
        job.fail(e)
        failed!
      else
        Resque.logger.info "done: #{job.inspect}"
      ensure
        yield job if block_given?
      end
    end
def perform ( job ) begin run_hook :after_fork , job if will_fork? run_hook :before_perform , job job . perform run_hook :after_perform , job rescue Object => e job . fail ( e ) failed! else Resque . logger . info "done: #{job.inspect}" ensure yield job if block_given? end end
Processes a given job in the child.
Processes a given job in the child .
job