Sha256: fb935f07424f7fb3c5e2daa1f39048048e326ad9fe7ffedb36535178154ffb58

Contents?: true

Size: 425 Bytes

Versions: 4

Compression:

Stored size: 425 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'resque/tasks'
require 'resque/pool'

namespace :resque do

  # resque worker config (not pool related).  e.g. hoptoad, rails environment
  task :setup

  namespace :pool do
     # resque pool config.  e.g. after_prefork connection handling
    task :setup
  end

  desc "Launch a pool of resque workers"
  task :pool => %w[resque:setup resque:pool:setup] do
    Resque::Pool.run
  end

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
vitobotta-resque-pool-0.3.1.dev lib/resque/pool/tasks.rb
vitobotta-resque-pool-0.3.0.dev lib/resque/pool/tasks.rb
resque-pool-0.3.0.beta.1 lib/resque/pool/tasks.rb
resque-pool-0.2.0 lib/resque/pool/tasks.rb