lib/resque/worker.rb
def shutdown(remote = false)
      Resque.logger.info 'Exiting...'

      @shutdown = true
      redis.set("worker:#{self}:shutdown", true) if remote
    end
# Schedule this worker for shutdown. Will finish processing the
# current job.
#
# If passed true, mark the shutdown in Redis to signal a remote shutdown
Schedule this worker for shutdown. Will finish processing the
current job.

If passed true, mark the shutdown in Redis to signal a remote shutdown
Schedule this worker for shutdown . Will finish processing the current job . If passed true mark the shutdown in Redis to signal a remote shutdown
def shutdown(remote = false)
      Resque.logger.info 'Exiting...'
      @shutdown = true
      redis.set("worker:#{self}:shutdown", true) if remote
    end
def shutdown ( remote = false ) Resque . logger . info 'Exiting...' @shutdown = true redis . set ( "worker:#{self}:shutdown" , true ) if remote end
Schedule this worker for shutdown.
Schedule this worker for shutdown .
remote