Commit df03275eaa2640887e4902a7e8198ed0e2896063

Authored by Dmitriy Zaporozhets
2 parents f0644590 03836cc5

Merge pull request #1655 from zzet/feature/resque_fix

fix resque start
Showing 1 changed file with 13 additions and 0 deletions   Show diff stats
lib/tasks/resque.rake
1 1 require 'resque/tasks'
  2 +
  3 +# Fix Exception
  4 +# ActiveRecord::StatementInvalid
  5 +# Error
  6 +# PGError: ERROR: prepared statement "a3" already exists
  7 +task "resque:setup" => :environment do
  8 + Resque.after_fork do |job|
  9 + ActiveRecord::Base.establish_connection
  10 + end
  11 +end
  12 +
  13 +desc "Alias for resque:work (To run workers on Heroku)"
  14 +task "jobs:work" => "resque:work"
... ...