Sha256: 6647effd7d592331745902e360541463918683107fcd6e2f1691cb8eaae694c5

Contents?: true

Size: 356 Bytes

Versions: 38

Compression:

Stored size: 356 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
require 'rhoconnect'
require 'resque/tasks'

ROOT_PATH = File.expand_path(File.dirname(__FILE__))

task 'resque:setup' do
  # The number of redis connections you want a job to have
  Rhoconnect.connection_pool_size = 1
  require 'rhoconnect/application/init'

  Resque.after_fork do
    Store.reconnect
  end
end

Version data entries

38 entries across 19 versions & 1 rubygems

Version Path
rhoconnect-5.5.2 generators/templates/application/Rakefile
rhoconnect-5.5.2 bench/benchapp/Rakefile
rhoconnect-5.5.0.7 bench/benchapp/Rakefile
rhoconnect-5.5.0.7 generators/templates/application/Rakefile
rhoconnect-5.5.0.3 bench/benchapp/Rakefile
rhoconnect-5.5.0.3 generators/templates/application/Rakefile
rhoconnect-5.5.0 bench/benchapp/Rakefile
rhoconnect-5.5.0 generators/templates/application/Rakefile
rhoconnect-5.1.1 generators/templates/application/Rakefile
rhoconnect-5.1.1 bench/benchapp/Rakefile
rhoconnect-4.0.4 generators/templates/application/Rakefile
rhoconnect-4.0.4 bench/benchapp/Rakefile
rhoconnect-4.0.3 bench/benchapp/Rakefile
rhoconnect-4.0.3 generators/templates/application/Rakefile
rhoconnect-4.0.2 generators/templates/application/Rakefile
rhoconnect-4.0.2 bench/benchapp/Rakefile
rhoconnect-4.0.1 bench/benchapp/Rakefile
rhoconnect-4.0.1 generators/templates/application/Rakefile