Sha256: eba9523ecb246c567ea4d714f91b7231089d16130ca0f5a5e68bf07b2e712347

Contents?: true

Size: 410 Bytes

Versions: 8

Compression:

Stored size: 410 Bytes

Contents

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

namespace :resque do

  desc "resque worker config (not pool related).  e.g. hoptoad"
  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

8 entries across 8 versions & 1 rubygems

Version Path
resque-pool-0.1.0 lib/resque/pool/tasks.rb
resque-pool-0.0.12.1.alpha lib/resque/pool/tasks.rb
resque-pool-0.0.12.0.alpha lib/resque/pool/tasks.rb
resque-pool-0.0.10.0 lib/resque/pool/tasks.rb
resque-pool-0.0.9 lib/resque/pool/tasks.rb
resque-pool-0.0.8 lib/resque/pool/tasks.rb
resque-pool-0.0.7 lib/resque/pool/tasks.rb
resque-pool-0.0.5 lib/resque/pool/tasks.rb