Sha256: 7c0b6cbaaeaeee4812ae3cff3e93d65c087ddc058bb68f271420103711e0c268

Contents?: true

Size: 444 Bytes

Versions: 15

Compression:

Stored size: 444 Bytes

Contents

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

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:preload resque:setup resque:pool:setup] do
    require 'resque/pool'
    Resque::Pool.run
  end

end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
resque-pool-0.7.1 lib/resque/pool/tasks.rb
resque-pool-0.7.0 lib/resque/pool/tasks.rb
heroku-resque-pool-0.0.3 lib/resque/pool/tasks.rb
heroku-resque-pool-0.0.2 lib/resque/pool/tasks.rb
heroku-resque-pool-0.0.1 lib/resque/pool/tasks.rb
heroku-resque-pool-0.0.0 lib/resque/pool/tasks.rb
resque-pool-0.6.0 lib/resque/pool/tasks.rb
resque-pool-0.6.0.rc1 lib/resque/pool/tasks.rb
resque-pool-0.5.0 lib/resque/pool/tasks.rb
resque-pool-0.5.0.rc1 lib/resque/pool/tasks.rb
resque-pool-0.4.0 lib/resque/pool/tasks.rb
resque-pool-0.4.0.rc3 lib/resque/pool/tasks.rb
resque-pool-vinted-0.4.0.rc1 lib/resque/pool/tasks.rb
resque-pool-0.4.0.rc2 lib/resque/pool/tasks.rb
resque-pool-0.4.0.rc1 lib/resque/pool/tasks.rb